{ "name": "stringify-object", "version": "1.0.0", "description": "Stringify an object/array like JSON.stringify just without all the double-quotes", "license": "BSD", "repository": { "type": "git", "url": "git://github.com/yeoman/stringify-object" }, "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 [![Build Status](https://secure.travis-ci.org/yeoman/stringify-object.svg?branch=master)](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 let's 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: [1, 2, 3],\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", "_id": "stringify-object@1.0.0", "_shasum": "333875ef8fd210f696d70b374146be84646bc346", "_from": "stringify-object@~1.0.0", "_resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-1.0.0.tgz" }