1.0.2 • Published 6 years ago
callbag-keyboard v1.0.2
yarn add callbag-keyboard
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:
keyboard
|> forEach({ keysDown }) => {
// have fun
});
Learn more
- Callbag basics
- Why we need callbags, by André Staltz