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

https://github.com/willdoescode/globalkey

Node/Electron library for global key listening.
https://github.com/willdoescode/globalkey

electron keylistener node rust

Last synced: about 1 month ago
JSON representation

Node/Electron library for global key listening.

Awesome Lists containing this project

README

        

[![npm](https://img.shields.io/npm/v/globalkey)](https://www.npmjs.com/package/globalkey) ![downloads](https://img.shields.io/npm/dm/globalkey)

# GlobalKey

## Building

```shell
cargo install nj-cli

nj-cli build --release
```

## Calling from node

```shell
npm i globalkey

# or

yarn add globalkey
```

```node
const globalkey = require('globalkey');

globalkey
.start(x => console.log(`Keydown ${x}`), y => console.log(`Keyup ${y}`));

setTimeout(() => globalkey.stop(), 5000)
```