Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 368 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 368 Bytes

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.