{"library":"copy-paste","type":"library","category":null,"description":"copy-paste is a Node.js utility designed to provide read/write access to the system clipboard across different operating systems. It achieves cross-platform compatibility by wrapping native command-line tools: `pbcopy` and `pbpaste` for macOS, `xclip` for Linux and BSD systems, and `clip` for Windows. This abstraction allows developers to interact with the clipboard using a unified JavaScript API. The package offers both a traditional callback-based interface for asynchronous operations and a modern Promise-based API for `async/await` patterns, accessible via a submodule. It is currently at version 2.2.0 and, while not actively undergoing rapid feature development, it remains a maintained package for fundamental clipboard interactions in Node.js environments. Its primary differentiator is its robust cross-platform wrapper for underlying system utilities, abstracting away the OS-specific commands.","language":"javascript","status":"maintenance","version":"2.2.0","tags":["javascript","copy","paste","copy and paste","clipboard"],"last_verified":"Wed May 27","install":[{"cmd":"npm install copy-paste","imports":["const { copy, paste } = require('copy-paste');","const clipboard = require('copy-paste/promises');","require('copy-paste').global();"]},{"cmd":"yarn add copy-paste","imports":[]},{"cmd":"pnpm add copy-paste","imports":[]}],"homepage":null,"github":"https://github.com/xavi-/node-copy-paste","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/copy-paste","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/copy-paste/compatibility"}}