Joined June 2011
·

Tim Oxley

Ennova
·
Brisbane
·
·
·

Posted to NPM package.json optionalDependencies over 1 year ago

Correct me if I'm wrong, but I believe this is now superseded by node core's peer dependencies: http://blog.nodejs.org/2013/02/07/undefined/

if you often work on multiple services at once, and don't mind using npm packages, http-server is great: it automatically finds an available port if you don't specify one:

> npm install -g http-server
> http-server
Starting up http-server, serving ./ on port: 8080
Hit CTRL-C to stop the server
...
> http-server&
Starting up http-server, serving ./ on port: 8081
> http-server&
Starting up http-server, serving ./ on port: 8082
Posted to Npm install trick over 1 year ago

Note there's also --save-dev and --save-opt to save into development and optional dependencies respectively.

Achievements
175 Karma
0 Total ProTip Views