Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 367 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 367 Bytes

@hackbg/cmds

Tiny command parser.

import Commands from '@hackbg/cmds'

class MyCommands extends Commands {
  cmd1 = this.command('cmd1', 'command 1', () => {})
}

new MyCommands('my commands')
  .addCommand('cmd2', 'command 2', () => {}, () => {})

Made with #%&! @ Hack.bg