1.0.10 • Published 6 years ago
clipem v1.0.10
Clipem - Node.js Clipboard Manager
Native API for NodeJS allowing system clipboard operations (built in C++, node-addon-api)
Development - Alpha phase
This is an early development version. It is released but could suffer from some bugs and is Windows only (future systems are coming).
Requirements
This module require atleast NodeJS 8
Note that you will have a warning about N-API in version < 10, you can disable it by adding the --no-warnings
flag to node
Installation
npm i --save clipem
Usage
const clipem = require("clipem")
// Copying
clipem.copy('Hello, this is a native copy !', () => {
// Do something when it has been copied
})
// Synchronous way
clipem.copySync('Hello, this is a native copy !')
// Pasting
clipem.paste((err, res) => {
// The pasted text is in the `res` parameter
console.log(res)
})
// Synchronous way
let pasted = clipem.pasteSync()
Support
This package supports the following systems :
- Windows native clipboard
Darwin OS X and Linux native clipboards are in progress