charmander

Breathes a fiery string of chars

npm install charmander
2 downloads in the last month

Charmander

Breathes a firey array of chars from a query

var char = require('charmander')

var weather = char('0x2600-0x2606')
  , religion = char('☥-☯')
  ;

setInterval(function() {
  console.log(
    weather[random(0, weather.length-1)]
  , religion[random(0, religion.length-1)]
  )
}, 1000)

var random = function(min, max) {
  return Math.floor(Math.random() * (max-min) + 1) + min
}

The results:

Enigma:charmander(master) $ node examples/random.js
☆ ☫
☄ ☩
☂ ☫
^C

Details

The selection string can be any set of characters 'abc' or it can be a range 'a-c'

npm loves you