bower
Version:
The browser package manager
46 lines (45 loc) • 2.4 kB
JSON
{
"name": "stringify-object",
"version": "1.0.1",
"description": "Stringify an object/array like JSON.stringify just without all the double-quotes",
"license": "BSD",
"repository": {
"type": "git",
"url": "git+https://github.com/yeoman/stringify-object.git"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha"
},
"files": [
"index.js"
],
"keywords": [
"object",
"stringify",
"pretty",
"print",
"dump",
"format"
],
"devDependencies": {
"mocha": "*"
},
"readme": "# stringify-object [](http://travis-ci.org/yeoman/stringify-object)\n\n> Stringify an object/array like JSON.stringify just without all the double-quotes.\n\nUseful for when you want to get the string representation of an object in a formatted way.\n\nIt also handles circular references and lets you specify quote type.\n\n\n## Install\n\n```sh\n$ npm install --save stringify-object\n```\n\n\n## Usage\n\n```js\nvar obj = {\n foo: 'bar',\n 'arr': [1, 2, 3],\n nested: { hello: \"world\" }\n};\n\nvar pretty = stringifyObject(obj, {\n indent: ' ',\n singleQuotes: false\n});\n\nconsole.log(pretty);\n/*\n{\n foo: \"bar\",\n arr: [\n 1,\n 2,\n 3\n ],\n nested: {\n hello: \"world\"\n }\n}\n*/\n```\n\n\n## API\n\n### stringifyObject(object, [options])\n\nAccepts an object to stringify and optionally an option object. Circular references will be replaced with `null`.\n\n#### options\n\n##### indent\n\nType: `string` \nDefault: `'\\t'`\n\nChoose the indentation you prefer.\n\n##### singleQuotes\n\nType: `boolean` \nDefault: `true`\n\nSet to false to get double-quoted strings.\n\n\n## License\n\n[BSD license](http://opensource.org/licenses/bsd-license.php) and copyright Google\n",
"readmeFilename": "readme.md",
"bugs": {
"url": "https://github.com/yeoman/stringify-object/issues"
},
"homepage": "https://github.com/yeoman/stringify-object#readme",
"_id": "stringify-object@1.0.1",
"_shasum": "86d35e7dbfbce9aa45637d7ecdd7847e159db8a2",
"_resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-1.0.1.tgz",
"_from": "stringify-object@>=1.0.0 <2.0.0"
}