Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ne0nwinds/native-clip
Access to the native OS clipboard from NodeJS
https://github.com/ne0nwinds/native-clip
c clipboard copy-paste hacktoberfest nodejs npm
Last synced: 30 days ago
JSON representation
Access to the native OS clipboard from NodeJS
- Host: GitHub
- URL: https://github.com/ne0nwinds/native-clip
- Owner: Ne0nWinds
- License: unlicense
- Created: 2021-10-24T05:32:06.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-05T01:44:20.000Z (about 3 years ago)
- Last Synced: 2024-10-09T19:04:30.137Z (30 days ago)
- Topics: c, clipboard, copy-paste, hacktoberfest, nodejs, npm
- Language: C
- Homepage: https://www.npmjs.com/package/native-clip
- Size: 37.1 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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
```js
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("🥑");
```