npm
to include it in your project:
$ npm install switchit --save
const {
Command,
Container,
Help
} = require('switchit');
class Hi extends Command {
execute (params) {
console.log(`Hi, ${params.name}!`);
}
}
Hi.define({
params: '{name}'
});
new Hi().run();
$ node mycommand.js Tim
Hi, Tim!
$ node mycommand.js --name Tim
Hi, Tim!
take a good look at the README file for a quick glance on what switchit can do.
read our docs for even more information
have you found (and maybe even fixed) a bug?
is there a feature you think is missing?
do you want to share your awesome project built with switchit?
let us know!