Simple parser for usage page in CLI
There are a lot of CLI with different usage doc, distributed in different ways. This repository contains a proposal to unified format for arguments of various CLI. Under the hood, the main idea is pretty similar to docopt approach.
More details in doс or at the catalog page
Requirements:
- Node.js 4+
npm install @linterhub/usage-parser
All releases and the source code are available for download at GitHub Releases.
Parse help doc and output result to console:
const parser = require('@linterhub/usage-parser');
console.log(parser('help doc'));
Before run add node_modules/.bin/usage-parser
to script in package.json
npm run parse "help doc"
You may contribute in several ways like requesting new features, adding tests, fixing bugs, improving documentation or examples. Please check our contributing guidelines.