0

Is it possible to listen for when you copy something somewhere.

And then execute a function or similar, for example when you copy something console.log() whatever you just copied...

This would, of course, be done through NodeJS.

Hope that makes sense... :/

8
  • are you looking for fs.watch or something like the watch package? maybe these answers can help you?
    – Eric Wong
    Jul 13, 2019 at 8:01
  • I was more thinking when you copy text, then it sends the message to node that you copied and what you copied... Jul 13, 2019 at 8:09
  • so you are talking about clipboard not file copy? you should have stated clearer in the question..
    – Eric Wong
    Jul 13, 2019 at 8:13
  • Sorry thought I was clear enough :/ Jul 13, 2019 at 8:14
  • then maybe try looking at the clipboardy package? although it does not provide watch, but depends on your use case, it might be sufficient to check every second and compares
    – Eric Wong
    Jul 13, 2019 at 8:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.