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
1All npm packages contain a file, usually in the project root, called package. json - this file holds various metadata relevant to the project. This file is used to give information to npm that allows it to identify the project as well as handle the project's dependencies.