arrow-keys
v1.0.0
Published
A stream of arrow keys
Downloads
24
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