clif
Command-line Interface Framework
⚠️ Status - WIP
This is a release candidate, we do not recommmend using this framework just yet.
🗒 About
This is a framework for building multi-level command CLIs in Node.js.
✨ Features
- Flag declaration and parsing - As standard.
- Positionals declaration and parsing - Leaf node commands can define positionals as inputs
- No compiling - this is a runtime CLI framework
- High speed - Since it's a very small runtime framework
clif is low overhead in both production and development scenarios
- Pattern-based declarative flow - Commands are implemented with (async) generator functions that yield pattern objects. This allows for rapid initial CLI development while patterns can continually specialize over time.
📖 Documentation
🏍 Engines
💻 Development
Test:
npm test
Visual coverage report (run after test):
npm run cov
Lint:
npm run lint
Autoformat:
npm run lint -- --fix
📜 License
MIT
🌶 Acknowledgements
Sponsored by CTO.ai