UNPKG

json-stringify-pretty-compact

Version:

The best of both `JSON.stringify(obj)` and `JSON.stringify(obj, null, indent)`.

35 lines (34 loc) 717 B
{ "name": "json-stringify-pretty-compact", "version": "1.2.0", "author": "Simon Lydell", "license": "MIT", "description": "The best of both `JSON.stringify(obj)` and `JSON.stringify(obj, null, indent)`.", "main": "index.js", "repository": "lydell/json-stringify-pretty-compact", "files": [ "index.js", "index.d.ts" ], "keywords": [ "JSON", "stringify", "pretty", "print", "pretty-print", "compact", "indent", "format", "formatter" ], "scripts": { "lint": "standard", "unit": "mocha --ui tdd", "test": "npm run lint && npm run unit" }, "devDependencies": { "chai": "^4.1.2", "mocha": "^4.1.0", "standard": "^10.0.3" } }