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';
await writeText('hello world');
const text = await readText();Reads text from the clipboard.
Writes text to the clipboard.