{"name":"@codemirror/autocomplete","version":"6.20.1","keywords":["editor","code"],"author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijn@haverbeke.berlin"},"license":"MIT","_id":"@codemirror/autocomplete@6.20.1","maintainers":[{"name":"adrianheine","email":"mail@adrianheine.de"},{"name":"marijn","email":"marijn@haverbeke.berlin"}],"homepage":"https://github.com/codemirror/autocomplete#readme","bugs":{"url":"https://github.com/codemirror/autocomplete/issues"},"dist":{"shasum":"4cfbc8b2e1e25f890ec34a081037e58b4e44143e","tarball":"http://registry-npm.ywwl.com/@codemirror/autocomplete/download/@codemirror/autocomplete-6.20.1.tgz","fileCount":9,"integrity":"sha512-1cvg3Vz1dSSToCNlJfRA2WSI4ht3K+WplO0UMOgmUYPivCyy2oueZY6Lx7M9wThm7SDUBViRmuT+OG/i8+ON9A==","signatures":[{"sig":"MEQCIBLDSflewVEUMxlCqBhID/ci7pCYbfiC114ew44oB5pWAiAiAvpCkXDFSQm1dLgxgbMV4+aH+NDwhn0Ve9BqFj1IxA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":255288,"size":65440,"noattachment":false,"key":"/@codemirror/autocomplete/-/@codemirror/autocomplete-6.20.1.tgz"},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"gitHead":"7cbf7fd3b8126fd2b8f3d29a0cb150ac31506fd1","scripts":{"test":"cm-runtests","prepare":"cm-buildhelper src/index.ts"},"_npmUser":{"name":"marijn","email":"marijn@haverbeke.berlin"},"repository":{"url":"git+https://github.com/codemirror/autocomplete.git","type":"git"},"_npmVersion":"11.9.0","description":"Autocompletion for the CodeMirror code editor","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{"@lezer/common":"^1.0.0","@codemirror/view":"^6.17.0","@codemirror/state":"^6.0.0","@codemirror/language":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"@codemirror/buildhelper":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/autocomplete_6.20.1_1772438213435_0.9513009026289727","host":"s3://npm-registry-packages-npm-production"},"readme":"# @codemirror/autocomplete [![NPM version](https://img.shields.io/npm/v/@codemirror/autocomplete.svg)](https://www.npmjs.org/package/@codemirror/autocomplete)\n\n[ [**WEBSITE**](https://codemirror.net/) | [**DOCS**](https://codemirror.net/docs/ref/#autocomplete) | [**ISSUES**](https://code.haverbeke.berlin/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/) | [**CHANGELOG**](https://code.haverbeke.berlin/codemirror/autocomplete/src/branch/main/CHANGELOG.md) ]\n\nThis package implements autocompletion 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://code.haverbeke.berlin/codemirror/autocomplete/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\n## Usage\n\n```javascript\nimport {EditorView} from \"@codemirror/view\"\nimport {autocompletion} from \"@codemirror/autocomplete\"\nimport {jsonLanguage} from \"@codemirror/lang-json\"\n\nconst view = new EditorView({\n  parent: document.body,\n  extensions: [\n    jsonLanguage,\n    autocompletion(),\n    jsonLanguage.data.of({\n      autocomplete: [\"id\", \"name\", \"address\"]\n    })\n  ]\n})\n```\n\nThis configuration will just complete the given words anywhere in JSON\ncontext. Most language modules come with more refined autocompletion\nbuilt-in, but you can also write your own custom autocompletion\n[sources](https://codemirror.net/docs/ref/#autocomplete.CompletionSource)\nand associate them with your language this way.\n","publish_time":1772438213606,"_cnpm_publish_time":1772438213606,"dist-tags":{"latest":"6.20.4"}}