0.0.0 • Published 9 years ago

keywords-array v0.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
9 years ago

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/);