Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clipboard-monitor

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clipboard-monitor

monitor clipboard for changes & emit events when new items are added to the clipboard

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Monitor your clipboard

This module helps you monitor your clipboard by firing ('copy') events whenever something is copied onto the clipboard.

It wraps around the awesome clipboardy module.

Install

npm i --save clipboard-monitor

Use


const clipMonit = require('clipboard-monitor');

//initialize & optionally set the interval with which to monitor the clipboard

var monitor = clipMonit(500);

/*
NOTE: interval defaults to 500ms so you can simply initialize using:
    'monitor = clipMonit()';
*/


//now monitor your events...

//'copy. event is fired every time data is copied to the clipboard
monitor.on('copy', function (data) {
    //do something with the data
    console.log(data);
});


//Stop the monitoring the clipboard
monitor.end();

ToDo

I would love to incorporate the ability to monitor file copies & dump/capture the file name/buffer data. Does anyone know how to do this? Or a module that achieves something similar?

Keywords

FAQs

Package last updated on 25 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc