You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dylan Baker fc26940560 0.1.1 7 months ago
LICENSE Initial commit 1 year ago Fix link in readme 7 months ago
lib.js Initial commit 1 year ago
package-lock.json 0.1.1 7 months ago
package.json 0.1.1 7 months ago
pj.js Initial commit 1 year ago
test.js Initial commit 1 year ago


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
$ pj scripts.test
node test.js

pj also supports arrays, also using dot notation:

$ pj keywords.0
$ pj keywords.1


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