aboutsummaryrefslogtreecommitdiff
path: root/node_modules/yargs/README.md
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
commitbbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch)
treec58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/yargs/README.md
parent003fb34971cf63466184351b4db5f7c67df4f444 (diff)
update packages
Diffstat (limited to 'node_modules/yargs/README.md')
-rw-r--r--node_modules/yargs/README.md39
1 files changed, 23 insertions, 16 deletions
diff --git a/node_modules/yargs/README.md b/node_modules/yargs/README.md
index 84f8fea10..a09b32222 100644
--- a/node_modules/yargs/README.md
+++ b/node_modules/yargs/README.md
@@ -1,9 +1,11 @@
-# Yargs
-
-_Yargs is developed on evenings and weekends by
-volunteers. Why not grab them dinner or a drink?_
-
-[![Support via Gratipay](https://cdn.rawgit.com/gratipay/gratipay-badge/2.3.0/dist/gratipay.svg)](https://gratipay.com/yargs/)
+<p align="center">
+ <img width="250" src="/yargs-logo.png">
+</p>
+<h1 align="center"> Yargs </h1>
+<p align="center">
+ <b >Yargs be a node.js library fer hearties tryin' ter parse optstrings</b>
+</p>
+<br>
[![Build Status][travis-image]][travis-url]
[![Coverage Status][coveralls-image]][coveralls-url]
@@ -13,13 +15,10 @@ volunteers. Why not grab them dinner or a drink?_
[![Conventional Commits][conventional-commits-image]][conventional-commits-url]
[![Slack][slack-image]][slack-url]
-_Having problems? want to contribute? join our [community slack](http://devtoolscommunity.herokuapp.com)_.
-
-> Yargs be a node.js library fer hearties tryin' ter parse optstrings.
-
-<img width="250" src="/yargs-logo.png">
+## Description :
+Yargs helps you build interactive command line tools, by parsing arguments and generating an elegant user interface.
-Yargs helps you build interactive command line tools, by parsing arguments and generating an elegant user interface. It gives you:
+It gives you:
* commands and (grouped) options (`my-program.js serve --port=5000`).
* a dynamically generated help menu based on your arguments.
@@ -35,7 +34,9 @@ Yargs helps you build interactive command line tools, by parsing arguments and g
npm i yargs --save
```
-## Simple Example
+## Usage :
+
+### Simple Example
````javascript
#!/usr/bin/env node
@@ -56,9 +57,9 @@ $ ./plunder.js --ships 12 --distance 98.7
Retreat from the xupptumblers!
```
-## Complex Example
+### Complex Example
-```js
+```javascript
#!/usr/bin/env node
require('yargs') // eslint-disable-line
.command('serve [port]', 'start the server', (yargs) => {
@@ -80,7 +81,13 @@ require('yargs') // eslint-disable-line
Run the example above with `--help` to see the help for the application.
-## Table of Contents
+## Community :
+
+Having problems? want to contribute? join our [community slack](http://devtoolscommunity.herokuapp.com).
+
+## Documentation :
+
+### Table of Contents
* [Yargs' API](/docs/api.md)
* [Examples](/docs/examples.md)