3 category: JavaScript libraries
8 [meow](https://npmjs.com/package/meow) is the easiest way to write command line apps for Node.js.
14 const cli = require('meow')(`
15 Usage: appname [options]
18 --lang LANG set the language
21 -h, --help show usage information
22 -v, --version print version info and exit
25 boolean: ['help', 'version'],
26 alias: { h: 'help', v: 'version' }
30 `string` and `boolean` lets meow/minimist know which flags expect arguments (`string`) and which don't (`boolean`).
35 cli.flags // { lang: 'en' }
39 Yes, flags are automatically camelCased!
41 ### Lesser-used settings
45 // Default values if flags are not specified
46 default: { lang: 'en' },
48 // allow using -- to stop processing flags
51 // Populate `_` with first non-option
54 // Invoked on unknown param
55 unknown: function () { ... }
59 Also see [minimist](minimist.html).