{"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","tarball":"http://registry-npm.ywwl.com/json-format/download/json-format-0.0.1.tgz","integrity":"sha512-xzaiosZBGwbpqAbtwrP0DxM8U63kXQqyeDbEQInE/sgAh1rbPAPGyecJ1TnGN2CdE4Z+Pj+ItGpO4ctbU5g4AA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBej0tTZfG2SjFLmP9dzD7cJ9kjAcQFNTLd3sDj+7X5CAiEA2QNNs4vI5AqC874+Otv5f30GbGlr4MW8z8qtLTVXYwg="}],"size":1304,"noattachment":false,"key":"/json-format/-/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":{},"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":1405308095742,"_cnpm_publish_time":1405308095742,"dist-tags":{"latest":"1.0.1"}}