# stb-keys

> Keyboard and remote control keys codes.

Latest version **1.4.4** (published 2018-08-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install stb-keys
pnpm add stb-keys
yarn add stb-keys
bun add stb-keys
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.4 |
| Published | 2018-08-14 |
| First published | 2015-10-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Stanislav Kalashnik |
| Maintainers | stbsdk |
| Keywords | stb, sdk, stbsdk, framework, keyboard, remote, control, keys, codes |

## Links

- npm: https://www.npmjs.com/package/stb-keys
- Repository: https://github.com/stbsdk/keys
- Homepage: https://github.com/stbsdk/keys#readme
- Issues: https://github.com/stbsdk/keys/issues
- npm.io page: https://npm.io/package/stb-keys

## Dependencies (1)

- [spa-keys](https://npm.io/package/spa-keys.md) ^1.4.1

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads
- [@modern-js/plugin-swc](https://npm.io/package/@modern-js/plugin-swc.md) — 3.4K weekly downloads

## Recent versions

- 1.4.4 (latest) — 2018-08-14
- 1.4.3 — 2017-12-13
- 1.4.2 — 2017-10-10
- 1.4.1 — 2017-09-19
- 1.4.0 — 2016-10-28
- 1.3.0 — 2015-10-12

## README

Remote control
==============

[![build status](https://img.shields.io/travis/stbsdk/keys.svg?style=flat-square)](https://travis-ci.org/stbsdk/keys)
[![npm version](https://img.shields.io/npm/v/stb-keys.svg?style=flat-square)](https://www.npmjs.com/package/stb-keys)
[![dependencies status](https://img.shields.io/david/stbsdk/keys.svg?style=flat-square)](https://david-dm.org/stbsdk/keys)
[![devDependencies status](https://img.shields.io/david/dev/stbsdk/keys.svg?style=flat-square)](https://david-dm.org/stbsdk/keys?type=dev)
[![Gitter](https://img.shields.io/badge/gitter-join%20chat-blue.svg?style=flat-square)](https://gitter.im/DarkPark/stbsdk)


Generated by remote controls and keyboards key codes used in STB applications.
At the moment `keypress` and `keydown` events are emitted for the same keys (for both printable and non-printable characters).
Key code is its default key code from event plus 1000 in case shift key pressed and plus 2000 in case alt key pressed.


## Installation ##

```bash
npm install stb-keys
```


## Usage ##

Add to the scope:

```js
var keys = require('stb-keys');
```

In some event handler:
```js
if ( event.code === keys.ok ) {
    ...
}
```


## Contribution ##

If you have any problem or suggestion please open an issue [here](https://github.com/stbsdk/keys/issues).
Pull requests are welcomed with respect to the [JavaScript Code Style](https://github.com/DarkPark/jscs).


## License ##

`stb-keys` is released under the [MIT License](license.md).

---
_Source: https://npm.io/package/stb-keys · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
