node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

charmander

Charmander

Breathes a fiery string of chars

var char = require('charmander')

console.log(char('a-z0-9A-Z'))

Result:

'abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'

Use a list, or a range.

char('abcdef') === char('a-f') // true

Use unicode

char('0x221e') // ∞

Install

npm install charmander

Todo

  • escape ranges