Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 436 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 436 Bytes

parseargs.js

What about parsing arguments allowing quotes in them? But beware that this library will not parse flags (-- and -), flags will be returned as simple strings.

Installation

npm install --save parseargs.js

Example

var parse = require('parseargs.js');

var setInRedis = 'set name "Put your name here"';

console.log(parse(setInRedis)); // ['set', 'name', 'Put your name here']

License

MIT