{"name":"jsonc","version":"1.1.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","homepage":"https://onury.io/jsonc","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.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.15","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.9","@types/mkdirp":"^0.5.2","@types/node":"^10.12.10","@types/parse-json":"^4.0.0","@types/strip-bom":"^3.0.0","@types/strip-json-comments":"0.0.30","coveralls":"^3.0.2","docma":"^3.0.0","jest":"^23.6.0","jest-cli":"^23.6.0","rimraf":"^2.6.2","ts-jest":"^23.10.4","typescript":"^3.1.6"},"gitHead":"8b94269637edf124039e5986b8d6d71f9dc2468c","bugs":{"url":"https://github.com/onury/jsonc/issues"},"_id":"jsonc@1.1.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"onury","email":"onur@cutepilot.com"},"dist":{"integrity":"sha512-FIX6wN79VBnhR22j56INtsL8ti3R9nKTIx0il/eNehR8WWOUebTLFcXa/7CJKJ0NjtZCyVpT3poU9imdJc5cnA==","shasum":"e449605cfe88fc9caea7978d1ee9854975484f3b","tarball":"http://registry-npm.ywwl.com/jsonc/download/jsonc-1.1.0.tgz","fileCount":12,"unpackedSize":90100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9pi+CRA9TVsSAnZWagAAjZEP/0V0R3NdLV5dLqTv5o0s\nSq2UtYBepDYQxGHjhyXGgx+dYB6zSeYw1D25Ls7ftchTLHehX7XmHZ6Cgnmw\n1lMcocO+VeVBfHKDW8tHg1O5a+y4A1BM5lFnk0qfaS86hVPqJ6H3bnZs85xI\nlymfrHcfxs8Pg27hkj+gZL98qIxZ0JS5e0ShnSETyPsoTOUQrG+0DiPK21C4\nWnXqa88+97w1ne/1S5PaO1/0wEd3+VnkmTGlkvMDErECl7zqUxwZmyXM/J5g\nUyd7P9w8XWtrkuT0eDswLQrIsu2o6JzGSSWdHi51T5ijluQpE94MSKe7so6A\n3CIyFUhte0bs82RCUoL1DrNQPJUa9WQogwefDIb6MvW+qtwC+ejIfPdVfpgq\nP2S5U1IRAfnlQcQ9TnRDN+CJaf8Tvve1aNTFP2+hOFLJK2AJSIRqlEcxyXVX\npKS8w7JuMM94hMIJEgv8sIGRZk7SmCZ1yQetJCGkPtipnQzT8E5EZHWExpmc\nSfU84ls0zl28HNAnl/Kqyr+9ff1fFjL83KoFd3yR79zOz9VG5vyFNeUwfApV\n1lbogslnWytUc5KfblVMOoCx9CrcaoBy7mEM+ecXnWxRTv749cqACUKUeoH8\n2G6v7b0Y8d4TNzHiVChFAP5wlcJvsc7WyaTSBuzk70H2I/EkIIteUe96iDK5\nrx82\r\n=lVHU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDvpGgqmytOTk7UWD6qOJn6E1BgUUrQcr3rqMerkrlC1AiB34dPxRdTaEs6qiIxKbGz8bJ1uefNl9mgkW5+vVLRHww=="}],"size":12833,"noattachment":false,"key":"/jsonc/-/jsonc-1.1.0.tgz"},"maintainers":[{"email":"onur@cutepilot.com","name":"onury"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jsonc_1.1.0_1542887614041_0.8953226842192865"},"_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":1542887614210,"_cnpm_publish_time":1542887614210,"dist-tags":{"latest":"3.0.0"}}