package
A tiny utility to interact with the system clipboard.
npm install tinyclipGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
8.3 kB
Includes dependencies.
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();readText(): Promise<string>Reads text from the clipboard.
writeText(text: string): Promise<void>Writes text to the clipboard.
florian-lefebvre
contact@florian-lefebvre.dev