Add events
Opened this issue · 2 comments
Deleted user commented
Could you guys add events like clipboardy.on('paste')?
So it triggers a callback with the data pasted
sindresorhus commented
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.
Deleted user commented
Fixed that with while loops, thanks.