1.0.0 • Published 8 years ago

argparser-js v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

argparser-js

A direct port of argparser-hs to javascript. Need this for my darkness bot. Takes a string and turns it into an "argv" (array of string arguments).

Why?

When you need to parse a string into an array of strings. For example, parsing a string on irc into "command line arguments" to be processed by some module.

Examples / Tests

see examples/main.js & test/index.spec.js

node examples/main.js
npm test