You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The absence of a clipboard feature in NodeJS poses a challenge for users who need to copy and paste text or data from NodeJS applications. Without this feature, users must resort to manual methods, such as selecting and copying text using keyboard shortcuts, which can be cumbersome and time-consuming.
What is the feature you are proposing to solve the problem?
The proposed feature idea would be implementing clipboard functionality in NodeJS, similar to the navigator.clipboard feature available in web browsers. This feature would allow users to easily copy text or data from NodeJS applications and paste it into other applications or documents.
We've seen that it is not impossible to add this feature, as many libraries (like https://github.com/dacap/clip) have done it before in CPP. I'm happy to help with the JS side of things, but CPP isn't my forte.
BTW I'm currently working on an implementation for this, but it make take a while to complete, as it must fit the ClipboardAPI spec, while also being cross-platform.
AFAIK, on Linux, the clipboard is not even part of the kernel, but lives in userspace (managed by X11, for example). This means there would be environments in which Node.js can run that don't have any concept of a clipboard, so it wouldn't be guaranteed to work.
Also, I think relatively few Node.js use-cases include working with the clipboard. This seems perfect for an npm package. Why can it not be a package?
What is the problem this feature will solve?
The absence of a clipboard feature in NodeJS poses a challenge for users who need to copy and paste text or data from NodeJS applications. Without this feature, users must resort to manual methods, such as selecting and copying text using keyboard shortcuts, which can be cumbersome and time-consuming.
What is the feature you are proposing to solve the problem?
The proposed feature idea would be implementing clipboard functionality in NodeJS, similar to the
navigator.clipboard
feature available in web browsers. This feature would allow users to easily copy text or data from NodeJS applications and paste it into other applications or documents.We've seen that it is not impossible to add this feature, as many libraries (like https://github.com/dacap/clip) have done it before in CPP. I'm happy to help with the JS side of things, but CPP isn't my forte.
https://developer.mozilla.org/en-US/docs/Web/API/Clipboard
The text was updated successfully, but these errors were encountered: