Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including jon with all npm packages installed. Try it out:

var jon = require("jon")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

jon v0.2.0

JSON Get/Set CLI Tool

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

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free