clipboard-listener

0.2.3 • Public • Published

clipboard-listener

Node.js event listener for clipboard changes.

Clipboard-listener uses the node-copy-paste package to get the data from clipboard.

Installation

To install the clipboard-listener, you can either use npm or GitHub.

npm install clipboard-listener
or
git clone https://github.com/venomaze/clipboard-listener.git

Usage

const ClipboardListener = require('clipboard-listener');
 
/*
 * Create a new instance
 */
const listener = new ClipboardListener({
  timeInterval: 100, // Default to 250
  immediate: true, // Default to false
});
 
/*
 * Start listening to clipboard changes
 */
listener.on('change', value => {
  console.log(value);
});

Package Sidebar

Install

npm i clipboard-listener

Weekly Downloads

7

Version

0.2.3

License

MIT

Unpacked Size

6 kB

Total Files

8

Last publish

Collaborators

  • venomaze