callbag-keyboard

Callbag source for the keyboard

Usage no npm install needed!

<script type="module">
  import callbagKeyboard from 'https://cdn.skypack.dev/callbag-keyboard';
</script>

README

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