Skip to content

A string argument parser that understands quotes and backslashes

License

Notifications You must be signed in to change notification settings

txgruppi/parseargs.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A string argument parser that understands quotes and backslashes

Resources

License

Stars

Watchers

Forks

Packages

No packages published