# better-clipboard

> A better clipboard for Electron.

Latest version **1.0.0** (published 2021-07-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install better-clipboard
pnpm add better-clipboard
yarn add better-clipboard
bun add better-clipboard
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-07-18 |
| First published | 2021-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 44.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 15 |
| Author | simu |
| Maintainers | simumn |
| Keywords | better-clipboard, clipboard, electron |

## Links

- npm: https://www.npmjs.com/package/better-clipboard
- Repository: https://github.com/simo-an/better-clipboard
- Issues: https://github.com/simo-an/better-clipboard/issues
- npm.io page: https://npm.io/package/better-clipboard

## Dependencies (3)

- [nan](https://npm.io/package/nan.md) ^2.13.2
- [bindings](https://npm.io/package/bindings.md) ^1.5.0
- [prebuild-install](https://npm.io/package/prebuild-install.md) ^6.1.3

## Recent versions

- 1.0.0 (latest) — 2021-07-18
- 0.0.1 — 2021-07-17

## README

A better clipboard for Electron (NodeJS).

#### Install

```
npm i better-clipboard

electron-rebuild -f -w better-clipboard
```

#### Usage

```js
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:
```js
  config.externals = {
    'better-clipboard': 'commonjs better-clipboard'
  }
```

Hope you have a better experience when using clipboard in electron.

---
_Source: https://npm.io/package/better-clipboard · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
