For use with Johnny-Five.
npm install johnny-five j5-button-gestures
const five = require("johnny-five");
const Gestures = require("j5-button-gestures");
const board = new five.Board();
board.on("ready", function() {
const button = new Gestures(8);
button.on("tap", () => console.log("tap"));
button.on("doubletap", () => console.log("doubletap"));
button.on("longpress", () => console.log("longpress"));
});