Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

drg2sba

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drg2sba

Extract sbagen & meta-files from idoser DRG files in javascript

latest
Source
npmnpm
Version
0.0.8
Version published
Maintainers
1
Created
Source

npm version

This program takes a .drg file from I-Doser and converts it to an .sbg SBaGen file.

See it in action here.

You can find some drg files to play with 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.

Features

  • Convert drg file into sbagen format
  • Extract every part of the drg file (description, title, image, sbagen code)

Installation

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.

usage

command-line

You can get more info with drg2sba --help.

Extract the description & title as comments in the sbagen file:

drg2sba drg/Absinthe.drg

Extract the image:

drg2sba drg/Absinthe.drg --image Absinthe.bmp

Extract all the parts as separate files:

drg2sba drg/Absinthe.drg -i Absinthe.png -s Absinthe.sba -d Absinthe.txt

Extract all parts to filenames that match for very file in a directory:

drg2sba drg/*.drg -i -s -d

Which will make these files in that directory:

  • Absinthe.bmp
  • Absinthe.sba
  • Absinthe.txt

nodejs, browserify

var drg2sba = require('drg2sba');
var sba = drg2sba(drg_file_contents);

requirejs

define(['drg2sba', 'text!Absinthe.drg'], function(drg2sba, drg_file_contents){
	var sba = drg2sba(drg_file_contents);

});

no-install regular browser-global

<script src="https://rawgit.com/brainbang/drg2sbg/master/dist/drg2sba.min.js"></script>
<script>
var sba = drg2sba(drg_file_contents);
</script>

Keywords

brainwave

FAQs

Package last updated on 08 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts