UNPKG

@lvce-editor/command

Version:

Command module

28 lines (17 loc) 402 B
# 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 [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/lvce-editor/command)