{"name":"jsonc","version":"0.0.0","description":"json + comments","main":"./lib/jsonc.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["json","with","comments","jsonc","json","comments"],"author":{"name":"mayank"},"license":"BSD","_id":"jsonc@0.0.0","dist":{"shasum":"423f8724aefa21296e91c1e53238b0f1660b4838","tarball":"http://registry-npm.ywwl.com/jsonc/download/jsonc-0.0.0.tgz","integrity":"sha512-rPektzX56+pn9Vsv3U0nIAKwWYyOxuGi3tXclkjAD4c63RIUub0kyd0cm0SpEdPmqWqb0oMTil527unFz7t/LQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICzqYZ5BxoXHESqC1tT2OmDJNkJqVwR5oerS1z4xhpyMAiBgAbI8AApoVLE7dR33LpTs1ZmC17b+V1BCMWu+YpjexA=="}],"size":1343,"noattachment":false,"key":"/jsonc/-/jsonc-0.0.0.tgz"},"readme":"# jsonc\n\n[![build-status](https://img.shields.io/travis/onury/jsonc.svg?branch=master&style=flat-square)](https://travis-ci.org/onury/jsonc)\n[![coverage-status](https://img.shields.io/coveralls/github/onury/jsonc/master.svg?style=flat-square)](https://coveralls.io/github/onury/jsonc?branch=master)\n[![npm](http://img.shields.io/npm/v/jsonc.svg?style=flat-square)](https://www.npmjs.com/package/jsonc)\n[![release](https://img.shields.io/github/release/onury/jsonc.svg?style=flat-square)](https://github.com/onury/jsonc)\n[![dependencies](https://david-dm.org/onury/jsonc.svg?style=flat-square)](https://david-dm.org/onury/jsonc)\n[![license](http://img.shields.io/npm/l/jsonc.svg?style=flat-square)](https://github.com/onury/jsonc/blob/master/LICENSE)\n[![maintained](https://img.shields.io/maintenance/yes/2019.svg?style=flat-square)](https://github.com/onury/jsonc/graphs/punch-card)  \n\n> © 2019, Onur Yıldırım ([@onury](https://github.com/onury)). MIT License.\n\nEverything you need in JSON land.\n\n`npm i jsonc`\n\n## Features\n\n- Parse JSON with comments.\n- Stringify objects with circular references.\n- Safely parse / stringify without try/catch blocks.\n- Read and auto-parse JSON files gracefully, sync or async (with promises).\n- Auto-stringify and write JSON files gracefully, sync or async (with promises).\n- Strips UTF-8 BOM.\n- Log objects as JSON (without worrying about errors).\n- Uglify/beautify JSON strings.\n- More helpful JSON errors.\n- Friendly API.\n- TypeScript support.\n\n## Usage\n\nSee the concise [API reference][docs-api].\n\n```js\nconst jsonc = require('jsonc');\n// or\nimport { jsonc } from 'jsonc';\n```\n\nThis is safe for JSON with comments:\n```js\njsonc.parse('// comment\\n{\"data\": /* comment */ \"value\"}\\n'); // » { data: 'value' }\n```\n\nAnd this is safe for circular references:\n```js\nconst obj = { x: 1 };\nobj.y = obj; // circular\njsonc.stringify(obj); // » { x: 1, y: '[Circular]' }\n```\n\nBut this is seriously safe:\n```js\n// safe version of every method\nconst jsonc = require('jsonc').safe;\n// or\nimport { safe as jsonc } from 'jsonc';\n\nconst [err, result] = jsonc.parse('[invalid JSON}');\nif (err) {\n    console.log(`Failed to parse JSON: ${err.message}`);\n} else {\n    console.log(result);\n}\n```\n\n## Documentation\n\nSee the concise [API reference][docs-api].\n\n## Change Log\n\n- **v2.0.0** (2019-06-17)\n    + Requires Node.js v8 or newer.\n    + Updated dependencies.\n\n\n- **v1.1.0** (2018-11-22)\n    + Fixed an issue where TypeScript compiler would complain about `'declare' modifier`.\n    + Improved typings for safe methods.\n    + Updated core dependencies.\n\n\n- **v1.0.0** (2018-10-18)\n    + Initial release.\n\n\n## License\nMIT.\n\n\n[docs-api]:https://onury.io/jsonc/api\n[strip-json-comments]:https://github.com/sindresorhus/strip-json-comments\n[json-stringify-safe]:https://github.com/isaacs/json-stringify-safe\n[parse-json]:https://github.com/sindresorhus/parse-json\n[fs-extra]:https://www.npmjs.com/package/fs-extra\n","maintainers":[{"name":"mayank","email":"mayank1791989@gmail.com"}],"directories":{},"publish_time":1345793883073,"_cnpm_publish_time":1345793883073,"dist-tags":{"latest":"3.0.0"}}