richtaur (owner)

Forks

Revisions

gist: 209045 Download_button fork
public
Public Clone URL: git://gist.github.com/209045.git
Embed All Files: show embed
npm.txt #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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}"
 
}