{"_id":"@cocacola89/codemirror-lang-jsonc","name":"@cocacola89/codemirror-lang-jsonc","dist-tags":{"latest":"6.0.1"},"versions":{"6.0.1":{"name":"@cocacola89/codemirror-lang-jsonc","version":"6.0.1","description":"JSONC language support for the CodeMirror code editor","scripts":{"test":"cm-runtests","prepare":"cm-buildhelper src/json.ts","build-readme":"builddocs  --main src/README.md --format markdown src/json.ts > README.md"},"keywords":["editor","code"],"author":{"name":"Nikolay Leonov","email":"cocacola89@live.ru"},"type":"module","main":"dist/index.cjs","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"types":"dist/index.d.ts","module":"dist/index.js","sideEffects":false,"license":"MIT","dependencies":{"@codemirror/language":"^6.0.0","@codemirror/lint":"^6.8.5","@codemovie/grammar-json-with-comments":"^1.0.3"},"devDependencies":{"@codemirror/buildhelper":"^1.0.0","builddocs":"^1.0.8"},"repository":{"type":"git","url":"git+https://github.com/cocacola89/codemirror-lang-jsonc.git"},"_id":"@cocacola89/codemirror-lang-jsonc@6.0.1","gitHead":"1c7ed0d19f6755e47f7bdc50a3e11e8c78a2bc4d","bugs":{"url":"https://github.com/cocacola89/codemirror-lang-jsonc/issues"},"homepage":"https://github.com/cocacola89/codemirror-lang-jsonc#readme","_nodeVersion":"20.19.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Vc+4ngS4CJSGG7jyN0CvgpmUSGESHomWzDOewT5Gm4M9CgIHYI19dFTb1sfmJGqzjC0Ae/RZzwv8UoqRtSgDyA==","shasum":"5e8110373a1458dc564ccf4f3a7ef81d550b960e","tarball":"https://registry.npmjs.org/@cocacola89/codemirror-lang-jsonc/-/codemirror-lang-jsonc-6.0.1.tgz","fileCount":9,"unpackedSize":7241,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIC554S35WPVuNGDcrBaCS787SbVZBy/zv671ljF2FuunAiADfgPMfyyLdvPT0sWxrkUR+Mutm2WrZ9np5OHHiv4g/w=="}]},"_npmUser":{"name":"cocacola89","email":"cocacola89@live.ru"},"directories":{},"maintainers":[{"name":"cocacola89","email":"cocacola89@live.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/codemirror-lang-jsonc_6.0.1_1749590887380_0.10391338096235514"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-10T21:28:07.279Z","6.0.1":"2025-06-10T21:28:07.572Z","modified":"2025-06-10T21:28:07.858Z"},"maintainers":[{"name":"cocacola89","email":"cocacola89@live.ru"}],"description":"JSONC language support for the CodeMirror code editor","homepage":"https://github.com/cocacola89/codemirror-lang-jsonc#readme","keywords":["editor","code"],"repository":{"type":"git","url":"git+https://github.com/cocacola89/codemirror-lang-jsonc.git"},"author":{"name":"Nikolay Leonov","email":"cocacola89@live.ru"},"bugs":{"url":"https://github.com/cocacola89/codemirror-lang-jsonc/issues"},"license":"MIT","readme":"<!-- NOTE: README.md is generated from src/README.md -->\n\n# @codemirror/lang-json [![NPM version](https://img.shields.io/npm/v/@codemirror/lang-json.svg)](https://www.npmjs.org/package/@codemirror/lang-json)\n\n[ [**WEBSITE**](https://codemirror.net/) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/lang-json/blob/main/CHANGELOG.md) ]\n\nThis package implements JSONC language support for the\n[CodeMirror](https://codemirror.net/) code editor.\n\nThe [project page](https://codemirror.net/) has more information, a\nnumber of [examples](https://codemirror.net/examples/) and the\n[documentation](https://codemirror.net/docs/).\n\nThis code is released under an\n[MIT license](https://github.com/codemirror/lang-json/tree/main/LICENSE).\n\nWe aim to be an inclusive, welcoming community. To make that explicit,\nwe have a [code of\nconduct](http://contributor-covenant.org/version/1/1/0/) that applies\nto communication around the project.\n\nThanks to [marijnh](https://github.com/marijnh) and [SirPepe](https://github.com/SirPepe) for their contributions that made this fork possible.\n\n## Usage\n\n```javascript\nimport {EditorView, basicSetup} from \"codemirror\"\nimport {jsonc} from \"@cocacola89/codemirror-lang-json\"\n\nconst view = new EditorView({\n  parent: document.body,\n  doc: `{\"version\": \"9.99.99\", /* comment */ \"data\": [1, 2, 3]}`,\n  extensions: [basicSetup, jsonc()]\n})\n```\n\n## API Reference\n\n * **`jsonc`**`() → LanguageSupport`\\\n   JSONC language support.\n\n\n * **`jsoncLanguage`**`: LRLanguage`\\\n   A language provider that provides JSON parsing.\n\n\n","readmeFilename":"README.md","_rev":"1-4e13ef5a17668b4a3c7bfa5cfc193881"}