|
|
7 anos atrás | |
|---|---|---|
| LICENSE | 7 anos atrás | |
| README.md | 7 anos atrás | |
| lib.js | 7 anos atrás | |
| package-lock.json | 7 anos atrás | |
| package.json | 7 anos atrás | |
| pj.js | 7 anos atrás | |
| test.js | 7 anos atrás |
pj is a small command-line utility for inspecting the contents of
package.json files.
$ npm install -g pajamas-cli
Invoked without arguments in a directory containing a package.json, pj will
simply print the entire object. To inspect a property of the object, pass an
argument consisting of the path to the property using dot notation. For
example:
$ cat package.json
{
"name": "My Package",
"version": "0.0.1",
"license": "MIT",
"keywords": ["node", "json", "cli"]
"scripts": {
"test": "node test.js"
}
}
$ pj version
0.0.1
$ pj scripts.test
node test.js
pj also supports arrays, also using dot notation:
$ pj keywords.0
node
$ pj keywords.1
json
pj is open source software under the terms of the
MIT license.