{"name":"@codemirror/commands","version":"6.8.0","keywords":["editor","code"],"author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijn@haverbeke.berlin"},"license":"MIT","_id":"@codemirror/commands@6.8.0","maintainers":[{"name":"adrianheine","email":"mail@adrianheine.de"},{"name":"marijn","email":"marijn@haverbeke.berlin"}],"homepage":"https://github.com/codemirror/commands#readme","bugs":{"url":"https://github.com/codemirror/commands/issues"},"dist":{"shasum":"92f200b66f852939bd6ebb90d48c2d9e9c813d64","tarball":"http://registry-npm.ywwl.com/@codemirror/commands/download/@codemirror/commands-6.8.0.tgz","fileCount":9,"integrity":"sha512-q8VPEFaEP4ikSlt6ZxjB3zW72+7osfAYW9i8Zu943uqbKuz6utc1+F170hyLUCUltXORjQXRyYQNfkckzA/bPQ==","signatures":[{"sig":"MEYCIQDX2TCIHldCK69S79DGBQcJpSY1kZS4J84fbGEEqDx3CwIhAKTRRh6T+7LNrc/8sE6gxsGfQTuRC2KD+ET4OV2ijY4E","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":235543,"size":48531,"noattachment":false,"key":"/@codemirror/commands/-/@codemirror/commands-6.8.0.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":"4d143a63213c2aee6f7c404329b01e31dd43c7b7","scripts":{"test":"cm-runtests","prepare":"cm-buildhelper src/commands.ts"},"_npmUser":{"name":"marijn","email":"marijn@haverbeke.berlin"},"repository":{"url":"git+https://github.com/codemirror/commands.git","type":"git"},"_npmVersion":"10.9.0","description":"Collection of editing commands for the CodeMirror code editor","directories":{},"sideEffects":false,"_nodeVersion":"20.13.1","dependencies":{"@lezer/common":"^1.1.0","@codemirror/view":"^6.27.0","@codemirror/state":"^6.4.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.8.0_1736353586517_0.4503248077582047","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":1736353586777,"_cnpm_publish_time":1736353586777,"dist-tags":{"latest":"6.11.2"}}