term-mouse

A simple mouse reporter

npm install term-mouse
3 downloads in the last day
4 downloads in the last week
11 downloads in the last month

Term Mouse

A mouse reporting interface

Based on TooTallNate's gist

Example

var mouse = require('term-mouse')();

mouse
    .start()
    .on('click', function(e) {
        console.log('you clicked %d,%d with the %s mouse button', e.x, e.y, e.button);
    })
    .on('scroll', function(e) {
        console.log('you scrolled %s', e.button);
    });
npm loves you