6.7.0-next.1603016916.6fcb9614704f8eb1569b9a4cb2274a522c47ec54 • Published 6 years ago

get-cli-arg v6.7.0-next.1603016916.6fcb9614704f8eb1569b9a4cb2274a522c47ec54

Weekly downloads
2,125
License
MIT
Repository
github
Last release
6 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

Deno

import pkg from 'https://unpkg.com/get-cli-arg@^6.7.0/edition-deno/index.ts'

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