genpkg

Generates NPM packages from single JavaScript files.

genpkg simplifies installation and update of unpackaged JavaScript files.

$ genpkg install https://raw.github.com/azer/sjcl/master/sjcl.js node_modules
Package "sjcl" saved successfully.
 
$ ls node_modules/sjcl
sjcl.js package.json
 
$ genpkg update
Checking for updates...
Package sjcl is already up to date
Done.
$ npm install genpkg
make test
  • Add export code if the module doesn't contain any
  • Support rename