{"library":"tiny-jsonc","type":"library","category":null,"description":"tiny-jsonc is an extremely lightweight JavaScript and TypeScript library designed specifically for parsing JSONC (JSON with Comments) strings. Currently at version 1.0.2, it employs a minimal, regex-based approach to first strip comments and then trailing commas from a JSONC input string. The cleaned string is then passed directly to the native `JSON.parse` function for final object instantiation. This method prioritizes small bundle size and operational simplicity, making it particularly suitable for environments where minimizing dependencies and code footprint is critical. It does not offer advanced JSONC manipulation APIs, rich error messages, or comprehensive parsing features found in full-blown parsers. The library's stable nature and focused scope suggest a maintenance-oriented release cadence, emphasizing reliability over rapid feature development. Developers needing more robust error handling or advanced parsing capabilities are explicitly directed to alternatives like `jsonc-simple-parser`.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript","jsonc","json","comments","trailing commas","commas","parser","parse","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install tiny-jsonc","imports":["import JSONC from 'tiny-jsonc';","import JSONC from 'tiny-jsonc';\nconst parsed = JSONC.parse(source);"]},{"cmd":"yarn add tiny-jsonc","imports":[]},{"cmd":"pnpm add tiny-jsonc","imports":[]}],"homepage":null,"github":"https://github.com/fabiospampinato/tiny-jsonc","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/tiny-jsonc","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/tiny-jsonc/compatibility"}}