This package has been deprecated

Author message:

dont use this

@ionjs/command
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

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.

/@ionjs/command/

    Package Sidebar

    Install

    npm i @ionjs/command

    Weekly Downloads

    0

    Version

    0.2.2

    License

    MIT

    Unpacked Size

    18.9 kB

    Total Files

    12

    Last publish

    Collaborators

    • awaiting
    • trustless