{"name":"json-format","version":"1.0.1","description":"JSON format for good presentation","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+ssh://git@github.com/luizstacio/json-format.git"},"keywords":["json","format","json","pretty","json","write","identation","json","ident","format"],"author":{"name":"luizstacio"},"license":"MIT","bugs":{"url":"https://github.com/luizstacio/json-format/issues"},"homepage":"https://github.com/luizstacio/json-format","devDependencies":{"mocha":"^3.2.0"},"gitHead":"0df943aec5a2af248c493d4e332662ed2ea15994","_id":"json-format@1.0.1","_shasum":"143f67e62af129d6bffed288a46265ea23d0df0c","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"luizstacio","email":"luizstacio@gmail.com"},"dist":{"shasum":"143f67e62af129d6bffed288a46265ea23d0df0c","tarball":"http://registry-npm.ywwl.com/json-format/download/json-format-1.0.1.tgz","integrity":"sha512-MoKIg/lBeQALqjYnqEanikfo3zBKRwclpXJexdF0FUniYAAN2ypEIXBEtpQb+9BkLFtDK1fyTLAsnGlyGfLGxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCeLIslIB2kxv9GixTIn1CVtW7fIZV4JkNjf1TaZOv5lAIhAPpo069mrWKVPK6vC+woway50pQgK7a0iiYfF57RS0ZC"}],"size":2273,"noattachment":false,"key":"/json-format/-/json-format-1.0.1.tgz"},"maintainers":[{"name":"luizstacio","email":"luizstacio@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/json-format-1.0.1.tgz_1491447649880_0.49468197324313223"},"directories":{},"readme":"json-format\n==========\n\n[![Build Status](https://travis-ci.org/luizstacio/json-format.svg?branch=master)](https://travis-ci.org/luizstacio/json-format.svg?branch=master)\n\nParse JavaScript Object to a JSON String indented.\n\n#### Instaling\n```\n  npm install json-format\n```\n\n#### Usage\n```\n  var jsonFormat = require('./');\n  var fs = require('fs');\n  var obj = {\n    a: 1,\n    b: 2\n  }\n\n  /* using config default, indent with tabs */\n  fs.writeFile('example_tabs.json', jsonFormat(obj), function(err){\n    if (err) throw err;\n    console.log('saved');\n  });\n\n  /* using indent with spaces */\n  var config = {\n    type: 'space',\n    size: 2\n  }\n\n  fs.writeFile('example_spaces.json', jsonFormat(obj, config), function(err){\n    if (err) throw err;\n    console.log('saved');\n  });\n```\n\n##### Result `example_tabs.json`\n```\n{\n    \"a\": 1,\n    \"b\": 2\n}\n```\n\n##### Result `example_spaces.json`\n```\n{\n  \"a\": 1,\n  \"b\": 2\n}\n```\n\n#### Default sizes\n```\n{\n  tab: { size: 1 },\n  space: { size: 4 }\n}\n```\n\n#### Config default\n```\n{\n  type: 'tab'\n}\n```\n\n[Based in this project](https://github.com/phoboslab/json-format).","publish_time":1491447651712,"_cnpm_publish_time":1491447651712,"dist-tags":{"latest":"1.0.1"}}