{"name":"@codemirror/commands","version":"6.10.4","keywords":["editor","code"],"author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijn@haverbeke.berlin"},"license":"MIT","_id":"@codemirror/commands@6.10.4","maintainers":[{"name":"marijn","email":"marijn@haverbeke.berlin"}],"dist":{"shasum":"64dec1bd043976eb344e3cc9d15af13b6f724bfd","tarball":"http://registry-npm.ywwl.com/@codemirror/commands/download/@codemirror/commands-6.10.4.tgz","fileCount":8,"integrity":"sha512-Ryk9y9T0FFVF0cUGhAknveAyUOl/A1qReTFi+qPKtOh2Z9F4AUBz3XOrYD4ZEgZirdugVzHvd/2/Wcwy5OliTg==","signatures":[{"sig":"MEUCIQC4uJrg4I5Ol9eb0e3i4im9Icu807QQf7qbqLRozVgZhgIgGniifN2l0BguQ/KQGMlyLqGCwuhSvF5+webVTcPDm88=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":244066,"size":49983,"noattachment":false,"key":"/@codemirror/commands/-/@codemirror/commands-6.10.4.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":"71a6d8223ed5d36eb84f36d20e332c572eac8bf7","scripts":{"test":"cm-runtests","prepare":"cm-buildhelper src/commands.ts"},"_npmUser":{"name":"marijn","email":"marijn@haverbeke.berlin"},"repository":{"url":"git+https://code.haverbeke.berlin/codemirror/commands.git","type":"git"},"_npmVersion":"11.9.0","description":"Collection of editing commands for the CodeMirror code editor","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{"@lezer/common":"^1.1.0","@codemirror/view":"^6.27.0","@codemirror/state":"^6.7.0","@codemirror/language":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"@codemirror/buildhelper":"^1.0.0","@codemirror/lang-javascript":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/commands_6.10.4_1782225981174_0.5760824536707756","host":"s3://npm-registry-packages-npm-production"},"readme":"# @codemirror/commands [![NPM version](https://img.shields.io/npm/v/@codemirror/commands.svg)](https://www.npmjs.org/package/@codemirror/commands)\n\n[ [**WEBSITE**](https://codemirror.net/) | [**DOCS**](https://codemirror.net/docs/ref/#commands) | [**ISSUES**](https://code.haverbeke.berlin/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/) | [**CHANGELOG**](https://code.haverbeke.berlin/codemirror/commands/src/branch/main/CHANGELOG.md) ]\n\nThis package implements a collection of editing commands 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/commands/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, keymap} from \"@codemirror/view\"\nimport {standardKeymap, selectLine} from \"@codemirror/commands\"\n\nconst view = new EditorView({\n  parent: document.body,\n  extensions: [\n    keymap.of([\n      ...standardKeymap,\n      {key: \"Alt-l\", mac: \"Ctrl-l\", run: selectLine}\n    ])\n  ]\n})\n```","publish_time":1782225981366,"_cnpm_publish_time":1782225981366,"dist-tags":{"latest":"6.11.2"}}