The easiest way to manage your node.js application's dependencies. With only one require
.
Nodefile:
use('express')
use('underscore', { as : '_', version : '1.1.4' })
app.js:
require('numb')
var app = express.createServer()
app.get('/:name?', function(req, res) {
compiled = _.template("Hello <%= name %>")
res.send(compiled({ name : req.params.name }))
})
app.listen(4000)
And finally:
$ numb
$ node app.js
$ open http://localhost:4000/me
You guessed it,
$ npm install numb
- Using DSL, describe all your dependencies in Nodefile.
- Add a simple
require('numb')
, your last require! - Run
numb
, which will install required versions locally. - That's it!
The usual. Pull requests are welcomed. Bugs go to Issues.
- 0.1.1 - fix bug with executable (missing hashbang)
- 0.1.0 - Basic implementation,
numb
either installs everything from Nodefile or creates a dummy one.