8.6.0 • Published 4 months ago

get-cli-arg v8.6.0

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

Get the value of a CLI argument

npm

Usage

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(process.argv, 'arg'))

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

4 months ago

8.5.0

4 months ago

8.1.0

6 months ago

7.4.0

6 months ago

8.2.0

5 months ago

8.4.0

5 months ago

8.3.0

5 months ago

8.0.0

6 months ago

7.3.0

3 years ago

7.1.0

3 years ago

7.0.0

3 years ago

6.8.0

4 years ago

6.7.0

4 years ago

6.6.0

4 years ago

6.5.0

4 years ago

6.4.0

4 years ago

6.3.0

4 years ago

6.2.0

4 years ago

6.1.0

4 years ago

6.0.0

4 years ago

5.8.0

4 years ago

5.7.0

4 years ago

5.6.0

4 years ago

5.5.0

4 years ago

5.4.0

4 years ago

5.3.0

4 years ago

5.2.0

4 years ago

5.1.0

4 years ago

5.0.0

4 years ago

4.6.0

4 years ago

4.5.0

4 years ago

4.4.0

4 years ago

4.2.0

4 years ago

3.0.0

4 years ago

2.3.0

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago