📝 CLI JSON file manipulator
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
.gitignore
.travis.yml
README.md
index.js
package.json
test.js

README.md

Jon Build Status Coverage Status

CLI JSON file manipulator.

Install

$ npm install --global jon

Usage

command:

    jon <json file path> <identifier> [value]

getting:

    $ jon package.json name
    'jon'

    $ jon package.json dependencies
    {
      "debug": "~0.7.2",
      "optimist": "~0.3.5"
    }

    $ jon package.json dependencies.debug
    "~0.7.2"

setting (currently string only):

    $ jon config.json proxy "127.0.0.1:8080"
    "127.0.0.1:8080" # JSON Parsed & Stringified Value (to check)

Example

$ jon package.json scripts.start
"node app.js"

$ jon package.json scripts.test "make test"

Licence

MIT © Ben Evans