1cd some/node/project
2
3# Get stuff from package.json
4npe name
5npe scripts
6npe scripts.test
7npe repository.url
8open $(npe repository.url)
9
10# Set stuff in package.json
11npe name foo
12npe scripts.start "node index.js"
13
14# Keywords string will be turned into an array
15# If commas are present, they'll be the delimiter. Otherwise spaces.
16npe keywords "foo, bar, cheese whiz"
17npe keywords "foo bar baz"
18
19# The current working directory's package.json is used by default,
20# but you can point to another package file with a flag:
21npe name --package=some/other/package.json
22npe name other --package=some/other/package.json
23
1{ "dependencies" : { "foo" : "1.0.0 - 2.9999.9999" , "bar" : ">=1.0.2 <2.1.2" , "baz" : ">1.0.2 <=2.3.4" , "boo" : "2.0.1" , "qux" : "<1.0.0 || >=2.3.1 <2.4.5 || >=2.5.2 <3.0.0" , "asd" : "http://asdf.com/asdf.tar.gz" , "til" : "~1.2" , "elf" : "~1.2.3" , "two" : "2.x" , "thr" : "3.3.x" , "lat" : "latest" , "dyl" : "file:../dyl" }}