Socket
Book a DemoInstallSign in
Socket

@youliso/better-clipboard

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@youliso/better-clipboard

A better clipboard for Electron.

unpublished
latest
Source
npmnpm
Version
1.0.8
Version published
Maintainers
0
Created
Source

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.

Keywords

better-clipboard

FAQs

Package last updated on 09 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts