A tiny cross-platform clipboard library. Uses native OS clipboard functionality on Node.js.
Note
In the browser, you can use the native Clipboard API instead of a dependency.
npm install tinyclipimport{readText,writeText}from'tinyclip';awaitwriteText('hello world');consttext=awaitreadText();Reads text from the clipboard.
Writes text to the clipboard.