Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add events #71

Closed
ghost opened this issue Dec 19, 2020 · 2 comments
Closed

Add events #71

ghost opened this issue Dec 19, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 19, 2020

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

@sindresorhus
Copy link
Owner

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.

@ghost
Copy link
Author

ghost commented Dec 19, 2020

Fixed that with while loops, thanks.

@ghost ghost closed this as completed Dec 19, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant