@rawcmd/core
v0.3.12
Published
Rawcmd core package.
Downloads
137
Maintainers
Readme
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],
);