split-string-words

1.1.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    46
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    46
  • 1.0.0
    126
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i split-string-words

Weekly Downloads

172

Version

1.1.0

License

MIT

Unpacked Size

3.18 kB

Total Files

5

Last publish

Collaborators

  • timjrobinson