Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aaronshaf/callbag-keyboard
Callbag source for the keyboard
https://github.com/aaronshaf/callbag-keyboard
callbag keyboard
Last synced: 17 days ago
JSON representation
Callbag source for the keyboard
- Host: GitHub
- URL: https://github.com/aaronshaf/callbag-keyboard
- Owner: aaronshaf
- License: mit
- Created: 2018-02-08T17:57:27.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-08T20:18:55.000Z (almost 7 years ago)
- Last Synced: 2024-10-17T01:06:48.813Z (24 days ago)
- Topics: callbag, keyboard
- Language: JavaScript
- Size: 33.2 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-callbags - keyboard
README
```bash
yarn add callbag-keyboard
``````javascript
const pipe = require("callbag-pipe");
const forEach = require("callbag-for-each");
const keyboard = require("callbag-keyboard");pipe(
keyboard,
forEach(({ keysDown }) => {
// have fun
// keysDown is a Set
})
);
```If you're blessed with the [pipeline operator](https://github.com/tc39/proposal-pipeline-operator):
```javascript
keyboard
|> forEach({ keysDown }) => {
// have fun
});
```## Learn more
* [Callbag basics](https://github.com/staltz/callbag-basics)
* [Why we need callbags](https://staltz.com/why-we-need-callbags.html), by André Staltz