split-space
v0.0.1
Published
Split a string by space and ignore space in quoted string.
Downloads
4
Readme
split-space
Split a string by space and ignore space in quoted string.
Install
$ npm install --save split-space
Usage
const split = require('split-space')
split('git commit -m "first commit"')
//=> ['git', 'commit', '-m', '\"first commit\"']
Related
- StackOverflow : The regex which is used by this library.
License
MIT © EGOIST