split-string-words
v1.1.0
Published
Splits a string into individual words, taking quotes into account
Downloads
702
Readme
split-string-words
Splits a string into individual words, taking quotes into account
Install
$ npm install --save split-string-words
Usage
var split = require('split-string-words');
split('hello this is dog');
//=> ["hello", "this", "is", "dog"]
split('hello "this is dog"');
//=> ["hello", "this is dog"]
split('filename hello-world.js __winning.py');
//=> ["filename", "hello-world.js", "__winning.py"]
License
MIT © Tim Robinson