🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

tinyclip

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tinyclip

A tiny utility to interact with the system clipboard.

Source
npmnpm
Version
0.1.13
Version published
Weekly downloads
3.2M
21.3%
Maintainers
2
Weekly downloads
 
Created
Source

tinyclip 📋

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.

Install

npm install tinyclip

Usage

import {readText, writeText} from 'tinyclip';

await writeText('hello world');
const text = await readText();

API

readText(): Promise<string>

Reads text from the clipboard.

writeText(text: string): Promise<void>

Writes text to the clipboard.

License

MIT

Keywords

clipboard

FAQs

Package last updated on 27 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts