{"name":"@codemirror/autocomplete","version":"6.20.3","description":"Autocompletion for the CodeMirror code editor","scripts":{"test":"cm-runtests","prepare":"cm-buildhelper src/index.ts"},"keywords":["editor","code"],"author":{"name":"Marijn Haverbeke","email":"marijn@haverbeke.berlin","url":"http://marijnhaverbeke.nl"},"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/state":"^6.0.0","@codemirror/view":"^6.17.0","@lezer/common":"^1.0.0"},"devDependencies":{"@codemirror/buildhelper":"^1.0.0"},"repository":{"type":"git","url":"git+https://code.haverbeke.berlin/codemirror/autocomplete.git"},"gitHead":"66587500a48805a4f43c7f5216ffce131b52dec2","_id":"@codemirror/autocomplete@6.20.3","_nodeVersion":"22.20.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-tlosUqb+3BbxCxZdu4tKeRghPFC+QM7q4X5YhKV2eCmPG+1r2F3f4AaSz5sCrFqUtX4Jh20VFTKecl16MgiV9g==","shasum":"696b740312c6a962e14567b49a3661b5924bc5ae","tarball":"http://registry-npm.ywwl.com/@codemirror/autocomplete/download/@codemirror/autocomplete-6.20.3.tgz","fileCount":8,"unpackedSize":256089,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEapVlno6BvgtFqMcrjgO7XNkdTwp1kDm6DYpRviKws9AiB7Kad6LODutQ2vryvYrRjX6OVmrz6zBS04RVwsZPU75Q=="}],"size":65626,"noattachment":false,"key":"/@codemirror/autocomplete/-/@codemirror/autocomplete-6.20.3.tgz"},"_npmUser":{"name":"marijn","email":"marijn@haverbeke.berlin"},"directories":{},"maintainers":[{"name":"marijn","email":"marijn@haverbeke.berlin"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/autocomplete_6.20.3_1780498277262_0.225562979979121"},"_hasShrinkwrap":false,"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":1780498277400,"_cnpm_publish_time":1780498277400,"dist-tags":{"latest":"6.20.4"}}