New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

stb-keys

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stb-keys

Keyboard and remote control keys codes.

latest
Source
npmnpm
Version
1.4.4
Version published
Maintainers
1
Created
Source

Remote control

build status npm version dependencies status devDependencies status Gitter

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

npm install stb-keys

Usage

Add to the scope:

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

In some event handler:

if ( event.code === keys.ok ) {
    ...
}

Contribution

If you have any problem or suggestion please open an issue here. Pull requests are welcomed with respect to the JavaScript Code Style.

License

stb-keys is released under the MIT License.

Keywords

stb

FAQs

Package last updated on 14 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts