{"name":"jsonc","version":"1.0.0","description":"Everything you need in JSON land. Parse JSON with comments, stringify objects with circular references, etc...","author":{"name":"Onur Yıldırım","email":"onur@cutepilot.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/onury/jsonc.git"},"main":"index.js","types":"./lib/jsonc.d.ts","scripts":{"clean":"rimraf ./lib","build":"npm run clean && npm run cover && mkdirp ./lib && tsc","test":"jest --verbose --no-cache","cover":"jest --coverage --verbose --no-cache","coveralls":"cat ./test/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js -v","report":"open ./test/coverage/lcov-report/index.html","docs":"docma -c ./docma.config.json"},"jest":{"testEnvironment":"node","globals":{"ts-jest":{"diagnostics":false}},"roots":["<rootDir>/src","<rootDir>/lib","<rootDir>/test"],"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/test/.*|(\\.|/)(test|spec))\\.tsx?$","moduleFileExtensions":["ts","tsx","js","json"],"testPathIgnorePatterns":["/backup/","/helpers/","/coverage/"],"collectCoverageFrom":["src/**/*.ts","!src/interfaces.ts"],"coverageDirectory":"./test/coverage"},"keywords":["json","object","notation","safe","stringify","parse","read-file","write-file","comments","circular","cyclic","console","log","uglify","beautify","typescript"],"dependencies":{"fast-safe-stringify":"^2.0.6","graceful-fs":"^4.1.11","mkdirp":"^0.5.1","parse-json":"^4.0.0","strip-bom":"^3.0.0","strip-json-comments":"^2.0.1"},"devDependencies":{"@types/jest":"^23.3.5","@types/mkdirp":"^0.5.2","@types/node":"^10.12.0","@types/parse-json":"^4.0.0","@types/strip-bom":"^3.0.0","@types/strip-json-comments":"0.0.30","coveralls":"^3.0.2","docma":"^2.1.0","jest":"^23.6.0","jest-cli":"^23.6.0","rimraf":"^2.6.2","ts-jest":"^23.10.4","typescript":"^3.1.3"},"gitHead":"200fd4536f2ecb58f673854ccc743a7794d9445d","bugs":{"url":"https://github.com/onury/jsonc/issues"},"homepage":"https://github.com/onury/jsonc#readme","_id":"jsonc@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.9.3","_npmUser":{"name":"onury","email":"onur@cutepilot.com"},"dist":{"integrity":"sha512-G9mYq0AcGRtMCatgoGsT5ZUgfhlKLKKKmr2lSYvuYS46LrBSKuDM1R42c8BjjpsaVLQG0TFKdShaOs0HLN3d7g==","shasum":"65ac65f0682c5f5f53f7b516f74278989f326fe2","tarball":"http://registry-npm.ywwl.com/jsonc/download/jsonc-1.0.0.tgz","fileCount":10,"unpackedSize":88748,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbyLRlCRA9TVsSAnZWagAAppUP/RWgcrLP0+tzTovkhqa1\nzRMWyMMzdxpBMqkRVGWtKpKc3uzz+Ful/fU0nTOeTDw4siujxlwSbx3p0bsF\nHXxx59t5vetFdm9PO+6HJTMzTiHylD9O6kuXuKGDk8h+sAVjBH0zn8mh8KAz\nN6iKmLHobVTZkKHV1wBHf8bvaOZOHLVjVffbJJi17nziZBJfouVy26ZdAdaV\nqOJIEq3GjJVYvYdaDhjBL7ED6hQ71dcEDL5mjftzLUQFR4sqTdgifN9Bv/Cf\nlpHjidZTSRwiTUQnPyTihhFizvl4D4zW1l6Xup090JZWOo6GWaXJ0ePdq6Sd\nVtzg8eElUQfOowvX5FTl7+gdIppqevZDAO7Y8IA2McBGPBnu9iv1tjR9qRGx\nEe/ymITY7UxjGD3ezbJSPObmLZGV8A1QH/qvkcfLRMwfhqNUAX4pqAavxhJv\n6R4zmKN38fnApWvzl5LAuUn23yFMUWwhYipI2t3V5S6pv17QujouM5Cv+qEX\nRtuR0G5+V+syr44yZ3UxGXri1FA4lwH66M86g4nN9qpxJN7LRv2F2LWwPFyj\nxPh3Ku8cQe/KUEdq8hbA5ZnAFF8Y/RBEZ33KZ2ECiVQLn4niSQfpu9hpUs3D\no/k7TbV8l23KODPw7EZnTDP6l3W6LX7UF3hPLthTgIMqUyuCBLd3FPVUc53A\nF1mi\r\n=iiUo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrYSpVjlTDGPrKZbmYrp/mY5+iqeGtl0eSFzbn6rFUhwIhAMEq8XuudWIrxaMU6hH2LsVnLOdaue1jlpx73bdIphZl"}],"size":14033,"noattachment":false,"key":"/jsonc/-/jsonc-1.0.0.tgz"},"maintainers":[{"email":"onur@cutepilot.com","name":"onury"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jsonc_1.0.0_1539880037053_0.24196255013939094"},"_hasShrinkwrap":false,"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","publish_time":1539880037124,"_cnpm_publish_time":1539880037124,"dist-tags":{"latest":"3.0.0"}}