0.0.1 • Published 5 years ago

@valudio/native-clipboard v0.0.1

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

Native clipboard node module (Macos and Windows)

Native node addon that allows you to manage the clipboard. Mainly to be used with Electron.

Installation

This module is installed via npm:

npm install --save @valudio/native-clipboard

Usage

import nativeClipboard from '@valudio/native-clipboard'

API

nativeClipboard.getFromClipboard ()

Returns the current value on the clipboard.

const clipboardValue = nativeClipboard.getFromClipboard()

nativeClipboard.setToClipboard (value)

Sets a value on the clipboard.

nativeClipboard.setToClipboard('this is a test')
console.log(nativeClipboard.getFromClipboard()) // this is a test

nativeClipboard.setSelectionToClipboard ()

Set whatever is selected to the clipboard.

nativeClipboard.setSelectionToClipboard()

Supported OSes

  • Windows
  • macOS

License

MIT © Valudio

0.0.1

5 years ago

0.0.0

5 years ago