click

0.1.0 • Public • Published

Click

Simulate mouse events.

Example

var click = require('click');
 
var a = document.createElement('a');
a.setAttribute('href', '/2013');
document.body.appendChild(a);
 
// Simulate right click:
click(a, {button: 2});
 
// Simulate ctrl click:
click(a, {ctrlKey: true});

License

MIT

/click/

    Package Sidebar

    Install

    npm i click

    Weekly Downloads

    13

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • uggedal