A small command-line utility for inspecting the contents of package.json files.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Dylan Baker fc26940560 0.1.1 il y a 4 ans
LICENSE Initial commit il y a 5 ans
README.md Fix link in readme il y a 4 ans
lib.js Initial commit il y a 5 ans
package-lock.json 0.1.1 il y a 4 ans
package.json 0.1.1 il y a 4 ans
pj.js Initial commit il y a 5 ans
test.js Initial commit il y a 5 ans

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.