Skip to content

Instantly share code, notes, and snippets.

@isaacs
Forked from richtaur/npm.txt
Created October 13, 2009 07:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save isaacs/209072 to your computer and use it in GitHub Desktop.
Save isaacs/209072 to your computer and use it in GitHub Desktop.
# Node Package Manager
npm [npm-options] command [command options]
install <package>
[-b (stable, edge, nightly) | --branch]
[-f | --force]
[-v | --version]
remove <package>
[-f | --force]
set <package> foo=bar key="my value"
// package.json
{
data : "http://{version}/example.json",
stable : "stable",
edge : "edge",
nightly : "master"
}
// example.json
{
name : "name",
branch : {
stable : "1.1",
edge : "1.2",
nightly : "1.3"
},
on : {
build : "command",
remove : "command",
start : "command",
stop : "command"
},
require : [
"foo",
"bar-1.2"
],
settings : {
host : "localhost",
port : 8080
},
tarball : "http://example.com/{version}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment