Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 649 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 649 Bytes

split-string-words

Splits a string into individual words, taking quotes into account

Build Status

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