@terminalfreaks/clover
TypeScript icon, indicating that this package has built-in type declarations

1.1.2Β β€’Β PublicΒ β€’Β Published

Clover

πŸ€βœ¨ Simplistic argument parser.

Install

npm install @terminalfreaks/clover

Example

const clover = require("@terminalfreaks/clover");

const options = clover("--greeting Hello -s");
console.log(options);
console.log(clover.isEmpty(options.s));

clover.isEmpty(option) - Checks if option is empty (example: --hi) or isn't passed.

Package Sidebar

Install

npm i @terminalfreaks/clover

Weekly Downloads

2

Version

1.1.2

License

MIT

Unpacked Size

3.24 kB

Total Files

7

Last publish

Collaborators

  • samuraistacks