1.0.5 • Published 9 years ago

split-shell-string v1.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

split-shell-string

Parser for shell argument strings. This is not to be used to parse arguments passed to your program, as those are already parsed by a shell.

var splitShell = require('split-shell-string');

console.info(splitShell.parse('"test"  \'test\' \'test\\\' test\' test "test test" test\ 123 -n -b / [^ ]+ / /\s+/ test\ test'));

// [
//   "test", "test", "test' test", "test", "test test", "test 123", "-n", "-b",
//   [^ ]+ /, /\s+/, "test test"
// ]
1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago