sindresorhus/clipboardy

Add events

Opened this issue · 2 comments

Could you guys add events like clipboardy.on('paste')?
So it triggers a callback with the data pasted

I don't know about Windows or Linux, but on macOS, the only way to get pasteboard events is polling, which is inefficient.

Why do you need a paste event for a Node.js module? The only use-case I can think of is some kind of interactive CLI tool.

Fixed that with while loops, thanks.