passed
Install
From NPM:
npm install passed
From GitHub:
npm install xist/passed
Example
const app = ;// const app = passed(process.argv); <- You can do this too! app; // my command hereapp; // { myOption: "John", myFlag: true }app; // Johnapp; // true
That's it! 😜 You now have access to the passed options.
Extras
You can even handle commands using .on
.
app;
Contribute
Pull requests are encouraged.