8.2.0-next.1700704567.827d1ea3857fc6f2c2d6a77746b2ebc6d1e53eff • Published 2 years ago

get-cli-arg v8.2.0-next.1700704567.827d1ea3857fc6f2c2d6a77746b2ebc6d1e53eff

Weekly downloads
2,125
License
Artistic-2.0
Repository
github
Last release
2 years ago

Get the value of a CLI argument

Usage

Complete API Documentation.

Supports fetching the value of an argument with the following convention:

  • --arg => true
  • --arg= => false
  • --arg="string" => "string"
  • --arg={"a":1} => {"a": 1}

Uses normalify for value parsing.

import getarg from 'get-cli-arg'
console.log(getarg('arg'))
console.log(getarg('arg', process.argv))

npm

Discover the release history by heading on over to the HISTORY.md file.

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

These amazing people are maintaining this project:

No sponsors yet! Will you be the first?

These amazing people have contributed code to this project:

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Unless stated otherwise all works are:

and licensed under:

8.6.0

2 years ago

8.5.0

2 years ago

8.1.0

2 years ago

7.4.0

2 years ago

8.2.0

2 years ago

8.4.0

2 years ago

8.3.0

2 years ago

8.0.0

2 years ago

7.3.0

5 years ago

7.1.0

5 years ago

7.0.0

5 years ago

6.8.0

5 years ago

6.7.0

6 years ago

6.6.0

6 years ago

6.5.0

6 years ago

6.4.0

6 years ago

6.3.0

6 years ago

6.2.0

6 years ago

6.1.0

6 years ago

6.0.0

6 years ago

5.8.0

6 years ago

5.7.0

6 years ago

5.6.0

6 years ago

5.5.0

6 years ago

5.4.0

6 years ago

5.3.0

6 years ago

5.2.0

6 years ago

5.1.0

6 years ago

5.0.0

6 years ago

4.6.0

6 years ago

4.5.0

6 years ago

4.4.0

6 years ago

4.2.0

6 years ago

3.0.0

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago