A small command-line utility for inspecting the contents of package.json files.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Dylan Baker fc26940560 0.1.1 4 anos atrás
LICENSE Initial commit 5 anos atrás
README.md Fix link in readme 4 anos atrás
lib.js Initial commit 5 anos atrás
package-lock.json 0.1.1 4 anos atrás
package.json 0.1.1 4 anos atrás
pj.js Initial commit 5 anos atrás
test.js Initial commit 5 anos atrás

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.