FGRibreau / clipboard-watcher

Listen to clipboard change (OSX only)
http://twitter.com/FGRibreau
MIT License
4 stars 1 forks source link

clipboard-watcher

Notify of clipboard change (OSX only)

Npm

npm install clipboard-watcher

Usage

'use strict';

var PbWatcher = require('clipboard-watcher');

var watchIntervalMs = 250;

PbWatcher(function(data){
  console.log('Clipboard changed to : "%s"', data);
}, watchIntervalMs);

Thanks

Clipboard-watcher was deeply inspired by SheetJS/pb.