{"_id":"tiny-jsonc","_rev":"2-81fa3e7f7ea3a76f79af4a67ec66705f","name":"tiny-jsonc","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"tiny-jsonc","version":"1.0.0","keywords":["jsonc","json","comments","trailing commas","commas","parser","parse"],"_id":"tiny-jsonc@1.0.0","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/jsonc-simple-parser#readme","bugs":{"url":"https://github.com/fabiospampinato/jsonc-simple-parser/issues"},"dist":{"shasum":"914e7abcc790c7954838fb68bb5aaffe021a68e6","tarball":"https://registry.npmjs.org/tiny-jsonc/-/tiny-jsonc-1.0.0.tgz","fileCount":14,"integrity":"sha512-6Q0EV+qZVjEmqLpG3Ax894P2CDjJcXdEG7U5NAVsAyHZhMj9xIFsQ8evFo+04TnZ2g5/H0arjMDey2QOPwiGxQ==","signatures":[{"sig":"MEUCIQD+OsFu26v4JoDL/+9ufzh0JW2LLDQOH3I99BW/xNi4IAIgCYJmS0su5MzfZYvoQECOiPLx7+GB5QuYsk130dOs0MI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":207739,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyYCsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxPA//QbJFekLI6sOUkoNqMA8FyTaiD1Oz3eh8cWWdubn3O1TJnimW\r\nHaqwuA+BLSy+eF7xbJNVsBrO+lByYKqro4LknGRPx4K2ubAOCxlqFzjoKLq2\r\nkYlCWqv8W/1WSjVWKnoyI9YrNSkF2ARmCZAukfNvfmD4Y3eiwYpZQ2ixQPKB\r\nzxe2Qh3xA1nIp5CBPm5tZElN3LkTCgPoddSLAkbAMoLDSzgz68b2JTm9fZ6v\r\nUKkB7s+3kpyBLpsNw3P3OZvefRfTk802ksDq590YuUuK453MK2OiN6zBL4nb\r\n8awi+dFzT5/wnYLDbWQNZzHV0gfXx5OXTeBZ2yCZUe9co5VGYU8796WEgRoO\r\nZHJK/jmV+foUFYFmZD3xidDZXO1OTT7DgGfme5gyYOP8bHy4tYRgregKDZnm\r\nW5y8T8ZzKxlCiXY42GEeb0a3APtICVRR00RXKpCwiVnacAkz47F+1BR1tAVk\r\ndvfXS51MQwxQuu+yGv/YZAhCWVoh7W4LfUf4R8hsjaQ6a72Xl1kuAvE7pYdd\r\n45YPoQVKoV2mkJ+C5Tf2TEnpqPD8RQ/U5GvqpPyeOR3Uh53aLmthb4FpfjT4\r\nXKDn/tS6mAEBesxXn4LkZJW2SfKgHF71HZnw3Dyz6O1HPgL6unKXFn17puGR\r\nRIlyHmsu08q1eCql+MuZisbeGzUFLmm3yyo=\r\n=j2jZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"65845d82978d1b61fd2b1084fcf15001485f802b","scripts":{"test":"tsex test","clean":"tsex clean","compile":"tsex compile","benchmark":"tsex benchmark","test:watch":"tsex test --watch","compile:watch":"tsex compile --watch","prepublishOnly":"npm run clean && npm run compile && npm run test","benchmark:watch":"tsex benchmark --watch"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/jsonc-simple-parser.git","type":"git"},"_npmVersion":"8.1.0","description":"An absurdly small JSONC parser.","directories":{},"_nodeVersion":"16.13.0","_hasShrinkwrap":false,"devDependencies":{"fava":"^0.0.7","tsex":"^1.1.4","json5":"^2.2.3","lodash":"^4.17.21","esbuild":"^0.17.3","benchloop":"^2.0.0","type-fest":"^3.5.2","typescript":"^4.9.4","jsonc-parser":"^3.2.0","jsonc-simple-parser":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/tiny-jsonc_1.0.0_1674150060049_0.7049154179345616","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"tiny-jsonc","version":"1.0.1","keywords":["jsonc","json","comments","trailing commas","commas","parser","parse"],"_id":"tiny-jsonc@1.0.1","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/jsonc-simple-parser#readme","bugs":{"url":"https://github.com/fabiospampinato/jsonc-simple-parser/issues"},"dist":{"shasum":"71de47c9d812b411e87a9f3ab4a5fe42cd8d8f9c","tarball":"https://registry.npmjs.org/tiny-jsonc/-/tiny-jsonc-1.0.1.tgz","fileCount":14,"integrity":"sha512-ik6BCxzva9DoiEfDX/li0L2cWKPPENYvixUprFdl3YPi4bZZUhDnNI9YUkacrv+uIG90dnxR5mNqaoD6UhD6Bw==","signatures":[{"sig":"MEYCIQCHOfXHhU3G31DXhFRkrxwYaWOLwfonWXzKZTIvJZjLZQIhAMD7H3fiZDnvU7uAxwyrhvDa8fC2495k7WBNY+7em/a7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":195837,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyYy2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoqSg//TkFy2ngjrnfrdwa7TarDzP/8alQUZB11P1yhQmGic/WsKKAY\r\nwPNqS+ESw8Kg3t4mkeeHNS1GK+y25OGnDjpyoCbzx7QB5uCBouNQkWqvOhIO\r\nBER0ISH9wGAXV8+F4oEMP6/5Ur8O9GcxwPU0wXhIGeCo57XCxv/CQnZHMO/r\r\noeFEqy7CpMTE9Z4c+3PV7gXqQQ8zwMzoBRvu9p4Z3t5inwb16z6scmg7XVCk\r\n6scaFcDZBu7iRkKm9O4eoOtb6+va/ujnyp7Bba1CwE0Yl2/RndZYEQOjzxuB\r\nwwly/qj//ujB5w/dNBuPxyD81b1QSQzuNALB5zQlN9c79hpISj7zJtGUxwaC\r\nk9dH2Z4PfxVmk4REoHZ4v9YfjClOdLkxZGgb6ZQ+q/wOoWJM9EjyGPwkGBPO\r\nE0lUIdLCHsZ7qGKR1if5tH2/cxCRD3qIxB5CKcPlG8QWf6bbNWtFdkkArJKG\r\nCGY/DyJ8aewDmUZ9/r1nlNU2lQgNQf21kh7CvjkjEt8EAmVGniJco9iPHw5/\r\n05gnXqZ2rwHPL8Insnw6iH9eQgWWhLZ+Ar51cCSi18t2kCCEHZ8vjRZAEK1w\r\n9Gjl4/e+ciJJERdTIIZ4+69206WAA1d1lz6dPC2suEueR4SqduUu5DtOxNGh\r\n5YQh7IgPyoFnDDddZ1t3lgJB7cdcJkKs0QQ=\r\n=pIlj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"ffc4641b00523ae15e6c9f6a99fd52392cf95b8b","scripts":{"test":"tsex test","clean":"tsex clean","compile":"tsex compile","benchmark":"tsex benchmark","test:watch":"tsex test --watch","compile:watch":"tsex compile --watch","prepublishOnly":"npm run clean && npm run compile && npm run test","benchmark:watch":"tsex benchmark --watch"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/jsonc-simple-parser.git","type":"git"},"_npmVersion":"8.1.0","description":"An absurdly small JSONC parser.","directories":{},"_nodeVersion":"16.13.0","_hasShrinkwrap":false,"devDependencies":{"fava":"^0.0.7","tsex":"^1.1.4","json5":"^2.2.3","lodash":"^4.17.21","esbuild":"^0.17.3","benchloop":"^2.0.0","type-fest":"^3.5.2","typescript":"^4.9.4","jsonc-parser":"^3.2.0","jsonc-simple-parser":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/tiny-jsonc_1.0.1_1674153142127_0.7310175636942973","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"tiny-jsonc","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/tiny-jsonc.git"},"description":"An absurdly small JSONC parser.","license":"MIT","version":"1.0.2","type":"module","main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"benchmark":"tsex benchmark","benchmark:watch":"tsex benchmark --watch","clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex test --watch","prepublishOnly":"tsex prepare"},"keywords":["jsonc","json","comments","trailing commas","commas","parser","parse"],"devDependencies":{"benchloop":"^2.1.1","fava":"^0.3.4","jsonc-simple-parser":"^3.0.0","tsex":"^4.0.2","typescript":"^5.7.3"},"_id":"tiny-jsonc@1.0.2","gitHead":"bb722089210174ec9cb53afcce15245e7ee21b9a","bugs":{"url":"https://github.com/fabiospampinato/tiny-jsonc/issues"},"homepage":"https://github.com/fabiospampinato/tiny-jsonc#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-f5QDAfLq6zIVSyCZQZhhyl0QS6MvAyTxgz4X4x3+EoCktNWEYJ6PeoEA97fyb98njpBNNi88ybpD7m+BDFXaCw==","shasum":"208df4c437684199cc724f31c2b91ee39c349678","tarball":"https://registry.npmjs.org/tiny-jsonc/-/tiny-jsonc-1.0.2.tgz","fileCount":5,"unpackedSize":3465,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDa5yOehXjmBjgz04QaG1bETQfnKgs5DLNFB/taJpCEGAiBXbxbqWKjHzMRRBtWmMm/s84hRW64JcYQwucfSbMJzDQ=="}]},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tiny-jsonc_1.0.2_1737158803720_0.7910845484290077"},"_hasShrinkwrap":false}},"time":{"created":"2023-01-19T17:41:00.048Z","modified":"2025-01-18T00:06:44.125Z","1.0.0":"2023-01-19T17:41:00.231Z","1.0.1":"2023-01-19T18:32:22.341Z","1.0.2":"2025-01-18T00:06:43.931Z"},"bugs":{"url":"https://github.com/fabiospampinato/tiny-jsonc/issues"},"homepage":"https://github.com/fabiospampinato/tiny-jsonc#readme","keywords":["jsonc","json","comments","trailing commas","commas","parser","parse"],"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/tiny-jsonc.git"},"description":"An absurdly small JSONC parser.","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"readme":"# Tiny JSONC\n\nAn absurdly small JSONC parser.\n\nThis library works simply by using regexes to strip out comments first and trailing commas second, in order to account for a trailing comma followed by a comment, and then just passing the output to `JSON.parse`.\n\nIf you need additional APIs to manipulate JSONC, better error messages, or a full-blown parser, I'd recommend using [`jsonc-simple-parser`](https://github.com/fabiospampinato/jsonc-simple-parser) instead.\n\n## Install\n\n```sh\nnpm install tiny-jsonc\n```\n\n## Usage\n\n```ts\nimport JSONC from 'tiny-jsonc';\n\nconst source = `\n  { // This is an example\n    \"foo\": 123,\n    /* TRAILING COMMAS */\n    \"bar\": [1, 2, 3,],\n  }\n`;\n\nconst result = {\n  foo: 123,\n  bar: [1, 2, 3]\n};\n\nJSONC.parse ( source ); // => returns an object that's deeply equal to `result`\n```\n\n## License\n\nMIT © Fabio Spampinato\n","readmeFilename":"readme.md","license":"MIT"}