Skip to content

sudhakar3697/node-clipboard-event

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-clipboard-event

Clipboard change event for Node.js, Electron.js, NW.js. It's not being polled. This implementation is based on child_process. A native node module using N-API is being developed.

Motivation

The motivation for creating this open project was these:

1. Add Clipboard change event to clipboard API

2. Clipboard-master

3. Discussion: feasibility for clipboard change events

Usage

import ClipboardListener from 'EventClipboard'

// In case of CommonJS
// const ClipboardListener = require('ClipboardEvent');

// To start listening
ClipboardListener.startListening();

ClipboardListener.on('change', () => {
    console.log('Clipboard changed');
});

// To stop listening
ClipboardListener.stopListening();
  • Access node_modules/clipboard-event/plataform and run the following command to give execution permission for files from your OS:
chmod +x <filename>

Credits

MAC

Linux:

Windows

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •