{"_id":"json-format","_rev":"2933311","name":"json-format","description":"JSON format for good presentation","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"luizstacio","email":"luizstacio@gmail.com"}],"time":{"modified":"2023-03-27T02:33:24.000Z","created":"2014-07-14T03:21:35.742Z","1.0.1":"2017-04-06T03:00:51.712Z","1.0.0":"2016-12-25T14:46:50.080Z","0.1.2":"2016-02-12T12:42:47.992Z","0.1.1":"2015-09-28T05:09:48.485Z","0.0.1":"2014-07-14T03:21:35.742Z"},"users":{},"author":{"name":"luizstacio"},"repository":{"type":"git","url":"git+ssh://git@github.com/luizstacio/json-format.git"},"versions":{"1.0.1":{"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","size":2273,"noattachment":false,"key":"/json-format/-/json-format-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/json-format/download/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":{},"publish_time":1491447651712,"_hasShrinkwrap":false,"_cnpm_publish_time":1491447651712,"_cnpmcore_publish_time":"2021-12-16T18:15:24.519Z"},"1.0.0":{"name":"json-format","version":"1.0.0","description":"JSON format for good presentation","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"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","gitHead":"bf30fa15c30a0f4bcf41c3510a4585eebeeeed9a","_id":"json-format@1.0.0","_shasum":"ada0d7938f15e3103dbd2b8c94733a4c404b73f1","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"luizstacio","email":"luizstacio@gmail.com"},"dist":{"shasum":"ada0d7938f15e3103dbd2b8c94733a4c404b73f1","size":1675,"noattachment":false,"key":"/json-format/-/json-format-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/json-format/download/json-format-1.0.0.tgz"},"maintainers":[{"name":"luizstacio","email":"luizstacio@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/json-format-1.0.0.tgz_1482677207879_0.6848898420576006"},"directories":{},"publish_time":1482677210080,"_hasShrinkwrap":false,"_cnpm_publish_time":1482677210080,"_cnpmcore_publish_time":"2021-12-16T18:15:24.725Z"},"0.1.2":{"name":"json-format","version":"0.1.2","description":"JSON format for good presentation","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"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","gitHead":"69c3d5334c754940ee243e260b1c5b1b8b221470","_id":"json-format@0.1.2","_shasum":"97944beed282d69c5490c31ff2b8d80037801f19","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"luizstacio","email":"luizstacio@gmail.com"},"dist":{"shasum":"97944beed282d69c5490c31ff2b8d80037801f19","size":1678,"noattachment":false,"key":"/json-format/-/json-format-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/json-format/download/json-format-0.1.2.tgz"},"maintainers":[{"name":"luizstacio","email":"luizstacio@gmail.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/json-format-0.1.2.tgz_1455280964497_0.8551139212213457"},"directories":{},"publish_time":1455280967992,"_hasShrinkwrap":false,"_cnpm_publish_time":1455280967992,"_cnpmcore_publish_time":"2021-12-16T18:15:25.012Z"},"0.1.1":{"name":"json-format","version":"0.1.1","description":"JSON format for good presentation","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"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","gitHead":"e1ef16adc5a24a97f87f512efef722fb0cf6240a","_id":"json-format@0.1.1","_shasum":"a03e3176b653faf57b9e1a3eb71e524e0c900e89","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"luizstacio","email":"luizstacio@gmail.com"},"dist":{"shasum":"a03e3176b653faf57b9e1a3eb71e524e0c900e89","size":1683,"noattachment":false,"key":"/json-format/-/json-format-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/json-format/download/json-format-0.1.1.tgz"},"maintainers":[{"name":"luizstacio","email":"luizstacio@gmail.com"}],"directories":{},"publish_time":1443416988485,"_hasShrinkwrap":false,"_cnpm_publish_time":1443416988485,"_cnpmcore_publish_time":"2021-12-16T18:15:25.350Z"},"0.0.1":{"name":"json-format","version":"0.0.1","description":"JSON format for good presentation","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"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","_id":"json-format@0.0.1","dist":{"shasum":"3cc012182e94457712c593c6d3ea5aa78ccbc9ba","size":1304,"noattachment":false,"key":"/json-format/-/json-format-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/json-format/download/json-format-0.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"luizstacio","email":"luizstacio@gmail.com"},"maintainers":[{"name":"luizstacio","email":"luizstacio@gmail.com"}],"directories":{},"publish_time":1405308095742,"_hasShrinkwrap":false,"_cnpm_publish_time":1405308095742,"_cnpmcore_publish_time":"2021-12-16T18:15:25.578Z"}},"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).","_attachments":{},"homepage":"https://github.com/luizstacio/json-format","bugs":{"url":"https://github.com/luizstacio/json-format/issues"},"license":"MIT"}