Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    charmanderpublic

    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

    Keywords

    none

    install

    npm i charmander

    Downloadsweekly downloads

    6

    version

    0.0.2

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar