Socket
Socket
Sign inDemoInstall

yargs-parser

Package Overview
Dependencies
0
Maintainers
3
Versions
83
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 20.2.6 to 20.2.7

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [20.2.7](https://www.github.com/yargs/yargs-parser/compare/v20.2.6...v20.2.7) (2021-03-10)
### Bug Fixes
* **deno:** force relese for Deno ([6687c97](https://www.github.com/yargs/yargs-parser/commit/6687c972d0f3ca7865a97908dde3080b05f8b026))
### [20.2.6](https://www.github.com/yargs/yargs-parser/compare/v20.2.5...v20.2.6) (2021-02-22)

@@ -7,0 +14,0 @@

4

package.json
{
"name": "yargs-parser",
"version": "20.2.6",
"version": "20.2.7",
"description": "the mighty option parser used by yargs",

@@ -64,3 +64,3 @@ "main": "build/index.cjs",

"mocha": "^8.0.0",
"puppeteer": "^5.2.1",
"puppeteer": "^8.0.0",
"rimraf": "^3.0.2",

@@ -67,0 +67,0 @@ "rollup": "^2.22.1",

@@ -25,4 +25,4 @@ # yargs-parser

```sh
node example.js --foo=33 --bar hello
```console
$ node example.js --foo=33 --bar hello
{ _: [], foo: 33, bar: 'hello' }

@@ -38,3 +38,3 @@ ```

```sh
```console
{ _: [], foo: 99, bar: 33 }

@@ -179,4 +179,4 @@ ```

```sh
node example.js -abc
```console
$ node example.js -abc
{ _: [], a: true, b: true, c: true }

@@ -187,4 +187,4 @@ ```

```sh
node example.js -abc
```console
$ node example.js -abc
{ _: [], abc: true }

@@ -200,4 +200,4 @@ ```

```sh
node example.js --foo-bar
```console
$ node example.js --foo-bar
{ _: [], 'foo-bar': true, fooBar: true }

@@ -208,4 +208,4 @@ ```

```sh
node example.js --foo-bar
```console
$ node example.js --foo-bar
{ _: [], 'foo-bar': true }

@@ -221,4 +221,4 @@ ```

```sh
node example.js --foo.bar
```console
$ node example.js --foo.bar
{ _: [], foo: { bar: true } }

@@ -229,4 +229,4 @@ ```

```sh
node example.js --foo.bar
```console
$ node example.js --foo.bar
{ _: [], "foo.bar": true }

@@ -242,4 +242,4 @@ ```

```sh
node example.js --foo=99.3
```console
$ node example.js --foo=99.3
{ _: [], foo: 99.3 }

@@ -250,4 +250,4 @@ ```

```sh
node example.js --foo=99.3
```console
$ node example.js --foo=99.3
{ _: [], foo: "99.3" }

@@ -263,5 +263,5 @@ ```

```sh
node example.js 99.3
{ _: [99] }
```console
$ node example.js 99.3
{ _: [99.3] }
```

@@ -271,4 +271,4 @@

```sh
node example.js 99.3
```console
$ node example.js 99.3
{ _: ['99.3'] }

@@ -284,4 +284,4 @@ ```

```sh
node example.js --no-foo
```console
$ node example.js --no-foo
{ _: [], foo: false }

@@ -292,4 +292,4 @@ ```

```sh
node example.js --no-foo
```console
$ node example.js --no-foo
{ _: [], "no-foo": true }

@@ -313,4 +313,4 @@ ```

```sh
node example.js -x 1 -x 2
```console
$ node example.js -x 1 -x 2
{ _: [], x: [1, 2] }

@@ -321,4 +321,4 @@ ```

```sh
node example.js -x 1 -x 2
```console
$ node example.js -x 1 -x 2
{ _: [], x: 2 }

@@ -334,4 +334,4 @@ ```

```sh
node example.js -x 1 2 -x 3 4
```console
$ node example.js -x 1 2 -x 3 4
{ _: [], x: [1, 2, 3, 4] }

@@ -342,4 +342,4 @@ ```

```sh
node example.js -x 1 2 -x 3 4
```console
$ node example.js -x 1 2 -x 3 4
{ _: [], x: [[1, 2], [3, 4]] }

@@ -355,4 +355,4 @@ ```

```sh
node example --arr 1 2
```console
$ node example --arr 1 2
{ _[], arr: [1, 2] }

@@ -363,4 +363,4 @@ ```

```sh
node example --arr 1 2
```console
$ node example --arr 1 2
{ _[2], arr: [1] }

@@ -385,4 +385,4 @@ ```

```sh
node example.js --no-foo
```console
$ node example.js --no-foo
{ _: [], foo: false }

@@ -393,4 +393,4 @@ ```

```sh
node example.js --quuxfoo
```console
$ node example.js --quuxfoo
{ _: [], foo: false }

@@ -408,4 +408,4 @@ ```

```sh
node example.js a -b -- x y
```console
$ node example.js a -b -- x y
{ _: [ 'a', 'x', 'y' ], b: true }

@@ -416,4 +416,4 @@ ```

```sh
node example.js a -b -- x y
```console
$ node example.js a -b -- x y
{ _: [ 'a' ], '--': [ 'x', 'y' ], b: true }

@@ -431,4 +431,4 @@ ```

```sh
node example.js -a 1 -c 2
```console
$ node example.js -a 1 -c 2
{ _: [], a: 1, c: 2 }

@@ -439,4 +439,4 @@ ```

```sh
node example.js -a 1 -c 2
```console
$ node example.js -a 1 -c 2
{ _: [], a: 1, b: undefined, c: 2 }

@@ -454,4 +454,4 @@ ```

```sh
node example.js -a run b -x y
```console
$ node example.js -a run b -x y
{ _: [ 'b' ], a: 'run', x: 'y' }

@@ -462,4 +462,4 @@ ```

```sh
node example.js -a run b -x y
```console
$ node example.js -a run b -x y
{ _: [ 'b', '-x', 'y' ], a: 'run' }

@@ -477,4 +477,4 @@ ```

```sh
node example.js --test-field 1
```console
$ node example.js --test-field 1
{ _: [], 'test-field': 1, testField: 1, 'test-alias': 1, testAlias: 1 }

@@ -485,4 +485,4 @@ ```

```sh
node example.js --test-field 1
```console
$ node example.js --test-field 1
{ _: [], 'test-field': 1, testField: 1 }

@@ -501,4 +501,4 @@ ```

```sh
node example.js --test-field 1
```console
$ node example.js --test-field 1
{ _: [], 'test-field': 1, testField: 1 }

@@ -509,4 +509,4 @@ ```

```sh
node example.js --test-field 1
```console
$ node example.js --test-field 1
{ _: [], testField: 1 }

@@ -525,4 +525,4 @@ ```

```sh
node example.js --unknown-option --known-option 2 --string-option --unknown-option2
```console
$ node example.js --unknown-option --known-option 2 --string-option --unknown-option2
{ _: [], unknownOption: true, knownOption: 2, stringOption: '', unknownOption2: true }

@@ -533,4 +533,4 @@ ```

```sh
node example.js --unknown-option --known-option 2 --string-option --unknown-option2
```console
$ node example.js --unknown-option --known-option 2 --string-option --unknown-option2
{ _: ['--unknown-option'], knownOption: 2, stringOption: '--unknown-option2' }

@@ -537,0 +537,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc