arrow-keys

A stream of arrow keys

Usage no npm install needed!

<script type="module">
  import arrowKeys from 'https://cdn.skypack.dev/arrow-keys';
</script>

README

arrow-keys

A stream of arrow keys

Example

var ArrowKeys = require("arrow-keys")
    , arrows = ArrowKeys()

arrows.on("data", function (key) {
    // up, left, right, down
    console.log(key)
})

/* NOW MASH UP LEFT RIGHT DOWN IN THAT ORDER */

Installation

npm install arrow-keys

Contributors

  • Raynos

MIT Licenced