@lvce-editor/command
Version:
Command module
28 lines (17 loc) • 402 B
Markdown
# Command
Command module.
## Install
```sh
npm install @lvce-editor/command
```
## Usage
```js
import * as Command from '@lvce-editor/command'
const fn = () => {
return 'abc'
}
Command.register('command-name', fn)
await Command.execute('command-name')
```
## Gitpod
[](https://gitpod.io/#https://github.com/lvce-editor/command)