keywords-array

0.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i keywords-array

Weekly Downloads

1

Version

0.0.0

License

ISC

Last publish

Collaborators

  • nichoth