Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arrgv

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arrgv - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc