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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i keywords-array

      Weekly Downloads

      0

      Version

      0.0.0

      License

      ISC

      Last publish

      Collaborators

      • nichoth