{"name":"@codemirror/autocomplete","version":"6.20.2","keywords":["editor","code"],"author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijn@haverbeke.berlin"},"license":"MIT","_id":"@codemirror/autocomplete@6.20.2","maintainers":[{"name":"marijn","email":"marijn@haverbeke.berlin"}],"dist":{"shasum":"36200d33f3e403ef4f76cf67b4cc7ec560e61c7b","tarball":"http://registry-npm.ywwl.com/@codemirror/autocomplete/download/@codemirror/autocomplete-6.20.2.tgz","fileCount":8,"integrity":"sha512-G5FPkgIiLjOgZMjqVjvuKQ1rGPtHogLldJr33eFJdVLtmwY+giGrlv/ewljLz6b9BSQLkjxuwBc6g6omDM+YxQ==","signatures":[{"sig":"MEUCIQDi4ASJlA4Xs72wqibenynNBskiwshdsft3msX69FneJwIgQGj1ef9Hm1ktbiRpBuxCTWORCWRlt4lnpdloVHARIn8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":255135,"size":65236,"noattachment":false,"key":"/@codemirror/autocomplete/-/@codemirror/autocomplete-6.20.2.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":"7e2ef4e5d144eea627c7b6a0b42213a56f3e73c3","scripts":{"test":"cm-runtests","prepare":"cm-buildhelper src/index.ts"},"_npmUser":{"name":"marijn","email":"marijn@haverbeke.berlin"},"repository":{"url":"git+https://code.haverbeke.berlin/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.2_1778062388721_0.4246701824082242","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":1778062388891,"_cnpm_publish_time":1778062388891,"dist-tags":{"latest":"6.20.4"}}