https://github.com/ethiclab/getarg
Reads from a formatted string like --arg-name
https://github.com/ethiclab/getarg
arguments getarg process
Last synced: 2 months ago
JSON representation
Reads from a formatted string like --arg-name
- Host: GitHub
- URL: https://github.com/ethiclab/getarg
- Owner: ethiclab
- Created: 2019-08-13T17:45:30.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-14T09:39:42.000Z (almost 7 years ago)
- Last Synced: 2026-03-26T10:39:34.278Z (3 months ago)
- Topics: arguments, getarg, process
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@ethiclab/getarg
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# getarg [](https://badge.fury.io/js/%40ethiclab%2Fgetarg) [](https://travis-ci.com/ethiclab/getarg) [](https://codecov.io/gh/ethiclab/getarg)
Reads from a formatted string like --arg-name
npm install @ethiclab/getarg
# usage
```javascript
const process = require('process')
const getarg = require("@ethiclab/getarg")
const _argname = getarg(process.argv, "--arg-name", "some optional default")
```