@rawcmd/core
TypeScript icon, indicating that this package has built-in type declarations

0.3.12 • Public • Published

Rawcmd core package.

Rawcmd allows for building command-line user interfaces in NodeJS. It's a lightweight and open-source framework, written with TypeScript. It's actively maintained, well tested and already used in production environments. The source code is available on GitHub where you can also find our issue tracker.

Example

const command = new Command({
  name: '',
  alias: '',
  description: '',
  summary: '',
  options: [
    new Option({
      name,
      alias,
      description,
      parser,
      validators,
    }),
  ],
  commands: [
    new Command({}),
  ],
  resolver(input) { ... },
});
command.perform(
  process.argv[2],
);

Package Sidebar

Install

npm i @rawcmd/core

Weekly Downloads

4

Version

0.3.12

License

MIT

Unpacked Size

119 kB

Total Files

103

Last publish

Collaborators

  • xpepermint