0.2.2 • Published 5 years ago

@ionjs/command v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Command

@ionjs/command logo

GitHub Org GitHub Build status codecov Language grade: JavaScript npm (scoped) GitHub code size in bytes

Command is a parser for shell-like-commands.

The main difference between Command and other parsers is that Command doesn't do exact behaviors.

Instead, it parses the command string and returns a program-readable object with arguments of the command.

Getting Started

Install and import Command:

npm install --save @ionjs/command
import { Command } from '@ionjs/command'
const command = new Command(declaration)
const input = getInputSomehow()
if (command.is(input))
    result = command.parse(input)

The full explanation of the codes above is in the docs.

Contribution

  • Become a stargazer if you are interested!
  • ionjs currently have only few contributors, so PRs and issues are very welcomed.
0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago