23/resumable.js — pull request #40 by xaiki (2012-11-27 13:40:41+00:00)
Title: Package resumable.js as a node module (please consider adding it to the npm registry)

Add package.json, move resumable-node from samples back to / and modify
sample app to reflect the change.

you can see the package being used in:
http://github.com/inaes-tic/mbc-playout

it allows an easy 2 steps install :
| 1) install the package
| $ npm install git@github.com:inaes-tic/resumable.js
| # could be just npm install resumable.js
|
| 2) plug it inside your code
| require ('resumable.js')
| serve javascript from require.resolve ('resumable.js/resumable.js');

Please consider submitting to npmjs.org to be added to the registry.
more info: https://npmjs.org/doc/developers.html

;td:lr; npm publishing in 2 steps.
| 1) Create a User Account
| Create a user with the adduser command. It works like this:
|
| $ npm adduser
| and then follow the prompts.
|
| This is documented better in adduser (https://npmjs.org/doc/adduser.html).
|
| 2) Publish your package
| This part's easy. IN the root of your folder, do this:
|
| $ npm publish
|
| You can give publish a url to a tarball, or a filename of a tarball, or a
| path to a folder.
|
| Note that pretty much everything in that folder will be exposed by default.
| So, if you have secret stuff in there, use a .npmignore file to list out the
| globs to ignore, or publish from a fresh checkout.

Signed-off-by: Niv Sardi