@aureooms/js-ascii
Version:
ASCII code bricks for JavaScript
50 lines (40 loc) • 2.38 kB
Markdown
[js-ascii](http://aureooms.github.io/js-ascii)
==
ASCII code bricks for JavaScript.
[](https://raw.githubusercontent.com/aureooms/js-ascii/master/LICENSE)
[](https://www.npmjs.org/package/@aureooms/js-ascii)
[](http://bower.io/search/?q=@aureooms/js-ascii)
[](https://travis-ci.org/aureooms/js-ascii)
[](https://coveralls.io/r/aureooms/js-ascii)
[](https://david-dm.org/aureooms/js-ascii#info=dependencies)
[](https://david-dm.org/aureooms/js-ascii#info=devDependencies)
[](https://codeclimate.com/github/aureooms/js-ascii)
[](https://www.npmjs.org/package/@aureooms/js-ascii)
[](https://github.com/aureooms/js-ascii/issues)
[](http://inch-ci.org/github/aureooms/js-ascii)
## Installation
Can be managed through [duo](https://github.com/duojs/duo),
[component](https://github.com/componentjs/component),
[bower](https://github.com/bower/bower), or
[npm](https://github.com/npm/npm).
```js
let ascii = require( "@aureooms/js-ascii" ) ;
```
## Usage
```js
ascii.islower( 'a' ) ; // true
ascii.islower( 'à' ) ; // false
ascii.islower( 'A' ) ; // false
ascii.islower( 'À' ) ; // false
ascii.islower( '0' ) ; // false
ascii.isupper( 'a' ) ; // false
ascii.isupper( 'à' ) ; // false
ascii.isupper( 'A' ) ; // true
ascii.isupper( 'À' ) ; // false
ascii.isupper( '0' ) ; // false
ascii.isdigit( 'a' ) ; // false
ascii.isdigit( 'à' ) ; // false
ascii.isdigit( 'A' ) ; // false
ascii.isdigit( 'À' ) ; // false
ascii.isdigit( '0' ) ; // true
```