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.
- Host: GitHub
- URL: https://github.com/willdoescode/globalkey
- Owner: willdoescode
- Created: 2021-05-06T21:08:37.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-11T17:25:46.000Z (about 4 years ago)
- Last Synced: 2024-09-18T19:54:57.109Z (8 months ago)
- Topics: electron, keylistener, node, rust
- Language: Rust
- Homepage: https://www.npmjs.com/package/globalkey
- Size: 13.8 MB
- Stars: 23
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/globalkey) 
# GlobalKey
## Building
```shell
cargo install nj-clinj-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)
```