3.0.0-next.1576633060.24f955452cfac43e58e8568969da4697d67d94fe • Published 6 years ago

get-cli-arg v3.0.0-next.1576633060.24f955452cfac43e58e8568969da4697d67d94fe

Weekly downloads
2,125
License
MIT
Repository
github
Last release
6 years ago

Get the value of a CLI argument

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'))

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