awerlang/ascii-category

View on GitHub
README.md

Summary

Maintainability
Test Coverage
# ascii-category

[![npm](https://img.shields.io/npm/v/ascii-category.svg)](https://www.npmjs.com/package/ascii-category)
[![GitHub](https://img.shields.io/github/license/awerlang/ascii-category.svg)](https://opensource.org/licenses/MIT)
[![Travis (.org)](https://img.shields.io/travis/awerlang/ascii-category.svg)](https://travis-ci.org/awerlang/ascii-category)
[![Code Climate](https://codeclimate.com/github/awerlang/ascii-category/badges/gpa.svg)](https://codeclimate.com/github/awerlang/ascii-category)
<a href="https://twitter.com/acdlite/status/974390255393505280"><img src="https://img.shields.io/badge/speed-blazing%20%F0%9F%94%A5-brightgreen.svg" alt="Blazing Fast"></a>

Attribute category from a key code or character.

# Install

```
npm i ascii-category
```

# Usage

```
import * as ascii from 'ascii-category'
```

or if you're old-school:

```
var ascii = require('ascii-category')
```

# API

```
> const key = 48
> ascii.isDigit(key)
true
```

```
> event.which === ascii.Enter
true | false
```

# Docs

Go to http://blog.werlangtecnologia.com.br/ascii-category/

# License

MIT