forked from panaverse/learn-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
51 lines (51 loc) · 3.05 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"name": "meow",
"version": "3.1.0",
"description": "CLI app helper",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/meow.git"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "node test.js"
},
"files": [
"index.js"
],
"keywords": [
"cli",
"bin",
"util",
"utility",
"helper",
"argv"
],
"dependencies": {
"camelcase-keys": "^1.0.0",
"indent-string": "^1.1.0",
"minimist": "^1.1.0",
"object-assign": "^2.0.0"
},
"devDependencies": {
"ava": "0.0.4"
},
"readme": "# meow [![Build Status](https://travis-ci.org/sindresorhus/meow.svg?branch=master)](https://travis-ci.org/sindresorhus/meow)\n\n> CLI app helper\n\n![](meow.gif)\n\n\n## Features\n\n- Parses arguments using [minimist](https://github.com/substack/minimist)\n- Converts flags to [camelCase](https://github.com/sindresorhus/camelcase)\n- Outputs version when `--version`\n- Outputs description and supplied help text when `--help`\n\n\n## Install\n\n```\n$ npm install --save meow\n```\n\n\n## Usage\n\n```sh\n$ ./foo-app.js unicorns --rainbow-cake\n```\n\n```js\n#!/usr/bin/env node\n'use strict';\nvar meow = require('meow');\nvar fooApp = require('./');\n\nvar cli = meow({\n\thelp: [\n\t\t'Usage',\n\t\t' foo-app <input>'\n\t].join('\\n')\n});\n/*\n{\n\tinput: ['unicorns'],\n\tflags: {rainbowCake: true},\n\t...\n}\n*/\n\nfooApp(cli.input[0], cli.flags);\n```\n\n\n## API\n\n### meow(options, minimistOptions)\n\nReturns an object with:\n\n- `input` *(array)* - Non-flag arguments\n- `flags` *(object)* - Flags converted to camelCase\n- `pkg` *(object)* - The `package.json` object\n- `help` *(object)* - The help text used with `--help`\n- `showHelp()` *(function)* - Show the help text and exit\n\n#### options\n\n##### help\n\nType: `string`, `boolean`\n\nThe help text you want shown.\n\nIf you don't specify anything, it will still show the package.json `\"description\"`.\n\nSet it to `false` to disable it all together.\n\n##### version\n\nType: `string`, `boolean` \nDefault: the package.json `\"version\"` property\n\nSet a custom version output.\n\nSet it to `false` to disable it all together.\n\n##### pkg\n\nType: `string`, `object` \nDefault: `package.json`\n\nRelative path to `package.json` or it as an object.\n\n##### argv\n\nType: `array` \nDefault: `process.argv.slice(2)`\n\nCustom arguments object.\n\n#### minimistOptions\n\nType: `object` \nDefault: `{}`\n\nMinimist [options](https://github.com/substack/minimist#var-argv--parseargsargs-opts).\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"bugs": {
"url": "https://github.com/sindresorhus/meow/issues"
},
"homepage": "https://github.com/sindresorhus/meow#readme",
"_id": "meow@3.1.0",
"_shasum": "5974708a0fe0dcbf27e0e6a49120b4c5e82c3cea",
"_resolved": "https://registry.npmjs.org/meow/-/meow-3.1.0.tgz",
"_from": "meow@*"
}