An open API service indexing awesome lists of open source software.

https://github.com/awerlang/ascii-category

Attribute category from a key code or character
https://github.com/awerlang/ascii-category

ansi ascii categorization char key keyboard keydown keypress keyup

Last synced: 9 days ago
JSON representation

Attribute category from a key code or character

Awesome Lists containing this project

README

          

# 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)
Blazing Fast

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