1.0.8 • Published 6 months ago

@youliso/better-clipboard v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

A better clipboard for Electron (NodeJS).

Install

npm i better-clipboard

electron-rebuild -f -w better-clipboard

More info of installation: https://github.com/JoshuaWise/better-sqlite3/blob/master/docs/troubleshooting.md

Usage

import { betterClipboard } from 'better-clipboard';

betterClipboard.readFilePathList(); // get the path of file which in clipboard
betterClipboard.readBufferList();
betterClipboard.readFileList();


betterClipboard.writeFileList([]); // write file into clipboard via file path

Webpack

If you are using webpack, simply add better-clipboard into externals:

  config.externals = {
    'better-clipboard': 'commonjs better-clipboard'
  }

Hope you have a better experience when using clipboard in electron.

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

7 months ago

1.0.5

8 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.4

9 months ago

1.0.0

1 year ago