Skip to content

jonschlinkert/alphabet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alphabet NPM version

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

npm i alphabet --save

Run tests

npm test

Usage

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

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert
Released under the MIT license


This file was generated by verb on December 31, 2014.

About

Currently the English alphabet, upper and lowercase, but open to PRs for other languages. (This was originally published to teach someone how NPM works.)

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published