jsonpretty

0.0.1 • Public • Published

jsonpretty

Yet another JSON pretty printer

Installation

Install via npm:

$ npm install jsonpretty

Usage

Take some JSON object and call like so:

var jsonpretty = require('jsonpretty');
var obj = { name: 'Bob', car: { make: 'Toyota', model: 'Camry' } };
console.log(jsonpretty(obj));

This will output:

{
  "name": "Bob",
  "car": {
    "make": "Toyota",
    "model": "Camry"
  }
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    15
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    15

Package Sidebar

Install

npm i jsonpretty

Weekly Downloads

15

Version

0.0.1

License

BSD

Last publish

Collaborators

  • eugeneware