A small command-line utility for inspecting the contents of package.json files.
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
Dylan Baker fc26940560 0.1.1 4 роки тому
LICENSE Initial commit 5 роки тому
README.md Fix link in readme 4 роки тому
lib.js Initial commit 5 роки тому
package-lock.json 0.1.1 4 роки тому
package.json 0.1.1 4 роки тому
pj.js Initial commit 5 роки тому
test.js Initial commit 5 роки тому

README.md

pj

pj is a small command-line utility for inspecting the contents of package.json files.

Installation

$ npm install -g pajamas-cli

Usage

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

License

pj is open source software under the terms of the MIT license.