native-clip
TypeScript icon, indicating that this package has built-in type declarations

0.5.3 • Public • Published

Read / Write from the native OS clipboard in Node.js

Features

  • Simple API usage and Error Handling
  • Fast / Direct OS Calls using C
  • Full Unicode Support (Non-English characters, Emojis, etc.)
  • Optional TypeScript Definitions
  • Windows and Mac OS support
  • Linux support (should work, but needs more testing)

Planned Features

  • Support for FreeBSD, OpenBSD+
  • More Optimization

Example Usage

const clipboard = require("native-clip");

// Returns a string of clipboard contents
clipboard.read();

// Copies "Test 1234" to the clipboard
clipboard.write("Test 1234");

// Full Unicode Support
clipboard.write("🥑");

Package Sidebar

Install

npm i native-clip

Weekly Downloads

2

Version

0.5.3

License

Unlicense

Unpacked Size

15.5 kB

Total Files

12

Last publish

Collaborators

  • ne0nwinds