genpkg

Generates NPM packages from single JavaScript files.

npm install genpkg
6 downloads in the last month

genpkg simplifies installation and update of unpackaged JavaScript files.

Usage Example

$ 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.

Installation

$ npm install genpkg

Tests

make test

TODO

  • Add export code if the module doesn't contain any
  • Support rename
npm loves you