https://github.com/pitr/numb
[DEPRECATED use npm] The easiest way to manage your node.js application's dependencies
https://github.com/pitr/numb
Last synced: about 1 year ago
JSON representation
[DEPRECATED use npm] The easiest way to manage your node.js application's dependencies
- Host: GitHub
- URL: https://github.com/pitr/numb
- Owner: pitr
- Created: 2011-03-21T04:08:29.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2012-07-09T00:19:30.000Z (almost 14 years ago)
- Last Synced: 2025-04-14T12:05:38.166Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 104 KB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Numb
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
## Installation
You guessed it,
$ npm install numb
## Tutorial
1. Using DSL, describe all your dependencies in Nodefile.
2. Add a simple `require('numb')`, your last require!
3. Run `numb`, which will install required versions locally.
4. That's it!
## Contribute
The usual. Pull requests are welcomed. Bugs go
to [Issues](https://github.com/pitr/numb/issues).
## Changelog
* 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.