Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "arrgv", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Parsing string to array of args like node on bash do.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# Arrgv | ||
## Parsing string to array of args like node on bash do. | ||
Parsing string to array of args like node on bash do. | ||
When you type something like `node script.js bla bla bla` in shell and do `myArgs = process.argv.slice(2)` you get the same. | ||
When you type something like `node script.js bla bla bla` in shell and do `myArgs = process.argv.slice(2)` you get the same. All slashes, quotes and special symbols are handled same way. | ||
## Install | ||
```bash | ||
npm install arrgv | ||
``` | ||
npm install arrgv | ||
``` | ||
## Tests | ||
```bash | ||
$ npm test | ||
``` | ||
## Use cases | ||
1. `spawn` a command that is given as a string | ||
2. test `argv` parser with complicated example string | ||
3. something else | ||
## Example | ||
```js | ||
var arrgv = require('arrgv'); | ||
var str = '-param --format="hh:mm:ss" filename.ext'; | ||
console.log(arrgv(str)); | ||
/* | ||
['-param', | ||
'--format=hh:mm:ss', | ||
'filename.ext' ] | ||
*/ | ||
``` | ||
## License | ||
MIT |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7466
40