Skip to content

timjrobinson/split-string-words

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Splits a string into individual words, taking quotes into account

Resources

License

Stars

Watchers

Forks

Packages

No packages published