{"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","tarball":"http://registry-npm.ywwl.com/json-format/download/json-format-0.1.1.tgz","integrity":"sha512-l3BR3Lc8rTuGOlwTxYk+bZQeYev29bHQ+v4/1HY+EZqWLwlxuvv7aDMg82Xed9/0TsE7d4nLt3eSG+2LBIY1gQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHaLmzthkm/KbdOaBsJ4saAKZ/ek+AsnoZDwzezLnz4KAiB5SDpPp5n87m0Lh5WTLj5L06B2gVYnQo0j2vJJqx/JuA=="}],"size":1683,"noattachment":false,"key":"/json-format/-/json-format-0.1.1.tgz"},"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":1443416988485,"_cnpm_publish_time":1443416988485,"dist-tags":{"latest":"1.0.1"}}