Thursday 20 April 2017

Is there a way to access files or folders in the clipboard via nodejs?

I am working on a little electron project to get started with that particular environment. Right now I am testing the clipboard and it seems like I can only read and write text, HTML, RTF and a Native Image from / to the clipboard. But is there a way to read in files via fs.readSync(path) and then copy it to the clipboard to simply paste it somewhere on the desktop etc. ?

Note: I have already taken a look at a bunch of clipboard packages on npms.io but I didn't find one that has the desired capability.



via Niklas Vest

No comments:

Post a Comment