{"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","tarball":"http://registry-npm.ywwl.com/json-format/download/json-format-0.1.2.tgz","integrity":"sha512-HK4dWgtxJb18dViONirPYJWDzeMW+dFNEz1KJMe5fL+tzhoVa1S4EZScbgTO6xk09qmeJ1B7kkJh9uyggCfAwQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA+CwJYRifDUo7CL/1SqhlahSCJbbp8ZPajXVsbP6YkfAiEA0xu+wnAH7HDtzf5BLeUkmoQu80Fo6OE4fKIk4A1Ys44="}],"size":1678,"noattachment":false,"key":"/json-format/-/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":{},"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":1455280967992,"_cnpm_publish_time":1455280967992,"dist-tags":{"latest":"1.0.1"}}