UNPKG

alphabet

Version:

The english alphabet as a string or array, upper and lowercase.

50 lines (32 loc) 1.18 kB
# alphabet [![NPM version](https://badge.fury.io/js/alphabet.svg)](http://badge.fury.io/js/alphabet) > The english alphabet as a string or array, upper and lowercase. Why? I've typed out the alphabet to do `indexOf()` one too many times, for apps, unit tests etc. ## Install with [npm](npmjs.org) ```bash npm i alphabet --save ``` ## Run tests ```bash npm test ``` ## Usage ```js var alphabet = require('alphabet'); console.log(alphabet.join('')); //=> [ 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' ] console.log(alphabet.lower.join('')); //=> [ 'abcdefghijklmnopqrstuvwxyz' ] console.log(alphabet.upper.join('')); //=> [ 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' ] ``` ## Contributing Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/alphabet/issues) ## Author **Jon Schlinkert** + [github/jonschlinkert](https://github.com/jonschlinkert) + [twitter/jonschlinkert](http://twitter.com/jonschlinkert) ## License Copyright (c) 2014 Jon Schlinkert Released under the MIT license *** _This file was generated by [verb](https://github.com/assemble/verb) on December 31, 2014._