| Server IP : 193.86.120.172 / Your IP : 216.73.216.67 Web Server : Apache/2.4.63 (Unix) System : Linux JServices 3.10.108 #86003 SMP Wed Oct 22 13:20:46 CST 2025 x86_64 User : kubec ( 1026) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /volume1/@appstore/SynologyApplicationService/node_modules/meow/ |
Upload File : |
# meow [](https://travis-ci.org/sindresorhus/meow)
> CLI app helper

## Features
- Parses arguments using [minimist](https://github.com/substack/minimist)
- Converts flags to [camelCase](https://github.com/sindresorhus/camelcase)
- Outputs version when `--version`
- Outputs description and supplied help text when `--help`
## Install
```sh
$ npm install --save meow
```
## Usage
```sh
$ ./foo-app.js unicorns --rainbow-cake
```
```js
#!/usr/bin/env node
'use strict';
var meow = require('meow');
var fooApp = require('./');
var cli = meow({
help: [
'Usage',
' foo-app <input>'
].join('\n')
});
/*
{
input: ['unicorns'],
flags: {rainbowCake: true},
...
}
*/
fooApp(cli.input[0], cli.flags);
```
## API
### meow(options, minimistOptions)
Returns an object with:
- `input` *(array)* - Non-flag arguments
- `flags` *(object)* - Flags converted to camelCase
- `pkg` *(object)* - The `package.json` object
- `help` *(object)* - The help text used with `--help`
- `showHelp()` *(function)* - Show the help text and exit
#### options
##### help
Type: `string`
The help text you want shown.
##### pkg
Type: `string`
Default: `package.json`
Relative path to `package.json`.
##### argv
Type: `array`
Default: `process.argv.slice(2)`
Custom arguments object.
#### minimistOptions
Type: `object`
Default: `{}`
Minimist [options](https://github.com/substack/minimist#var-argv--parseargsargs-opts).
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)