{"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","tarball":"http://registry-npm.ywwl.com/json-format/download/json-format-1.0.0.tgz","integrity":"sha512-+URkHxOneuZza7OxA//XJlGM+z0hmHoRxuRMC+nXALoErFzKbXuanXxYImRm0ykHNq3oR+Bl0ZIxiv3lK1oq3w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5jLZ2OhHOa+KnUfhSqRnTo7n/NAzdmBj2/I/MH6Y+QwIhAM80c9gcQrgdDUrmoStTL/UroRG+ADtwaWsb3zVIPVUg"}],"size":1675,"noattachment":false,"key":"/json-format/-/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":{},"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":1482677210080,"_cnpm_publish_time":1482677210080,"dist-tags":{"latest":"1.0.1"}}