Naboo's Podracing Misadventure
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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"
  }
}

Keywords

none

install

npm i jsonpretty

Downloadsweekly downloads

9

version

0.0.1

license

none

repository

githubgithub

last publish

collaborators

  • avatar