word-array

v0.1.0
Similar to Ruby's %w. Create word arrays.
word array ruby

node-word-array

You're a rubyist and you like this syntax:

%w(one two three)
# => ['one', 'two', 'three']

Now you can do this in JS:

w('one two three')
// => ['one', 'two', 'three']

Or in Coffee:

w 'one two three'
# => ['one', 'two', 'three']

Installation

npm install word-array

Usage

w = require('word-array')
w('one two three')
// => ['one', 'two', 'three']
npm i word-array

Metadata

  • MIT
  • Whatever
  • Guilherme Berger
  • released 3/6/2014

Downloads

Maintainers