This program takes a .drg file from I-Doser and converts it to an .sbg SBaGen file.
See it in action here.
The authors of this project have nothing to do with I-Doser, I-Doser is a registered trademark.
It should work on Windows, Mac, & Linux.
- Convert drg file into sbagen format
- Extract every part of the drg file (description, title, image, sbagen code)
You can install this globally so drg2sba
ends up in your path with this: npm install -g drg2sba
. You can add it to a particular project with npm install --save drg2sba
.
You can get more info with drg2sba --help
.
drg2sba drg/Absinthe.drg
drg2sba drg/Absinthe.drg --image Absinthe.bmp
drg2sba drg/Absinthe.drg -i Absinthe.png -s Absinthe.sba -d Absinthe.txt
drg2sba -i -s -d drg/*.drg
Which will make these files in that directory:
- Absinthe.bmp
- Absinthe.sba
- Absinthe.txt
var drg2sba = require('drg2sba');
var sba = drg2sba(drg_file_contents);
define(['drg2sba', 'text!Absinthe.drg'], function(drg2sba, drg_file_contents){
var sba = drg2sba(drg_file_contents);
});
<script src="https://rawgit.com/brainbang/drg2sbg/master/dist/drg2sba.min.js"></script>
<script>
var sba = drg2sba(drg_file_contents);
</script>