0.5.18 • Published 9 years ago
harmonious v0.5.18
harmonious
Ensure that your Node.js CLI apps are loaded with the correct Node version based on engines.node
in package.json, and with --harmony if needed.
Usage
As simple as can be:
{
"engines": {
"node": "=0.11.13"
}
}
File app.js:
#!/usr/bin/env node
var harmony = require('./harmonious');
harmony('./lib/cli');
harmonious
will ensure that regardless of how you invoke your app,
harmony
extensions will be loaded. These will all work:
$ ./app
$ node app
$ node --harmony app
$ n use 0.11.13 app
Say you have a global bin
you want to use:
{
"bin": {
"myapp": "app.js"
}
}
You don't have to worry about trying to shove --harmony
somewhere:
$ sudo myapp
$ sudo node myapp
0.5.18
9 years ago
0.5.17
10 years ago
0.5.16
10 years ago
0.5.15
10 years ago
0.5.14
10 years ago
0.5.13
10 years ago
0.5.12
10 years ago
0.5.11
10 years ago
0.5.10
10 years ago
0.5.9
10 years ago
0.5.8
10 years ago
0.5.7
10 years ago
0.5.6
10 years ago
0.5.5
10 years ago
0.5.4
10 years ago
0.5.2
10 years ago
0.5.1
10 years ago
0.5.0
10 years ago