0.0.0 • Published 9 years ago
keywords-array v0.0.0
keywords array
Convert a string of words to an array.
install
$ npm install keywords-array
example
var toArray = require('../');
// by default splits on spaces or commas
var wordArray = toArray('this is, all, a string');
// => ['this', 'is', 'all', 'a', 'string']
// split on something else:
var otherArray = toArray('this is, all, a string', /custom/);
0.0.0
9 years ago