# clipboard-listener

> Node.js event listener for clipboard changes.

Latest version **0.2.3** (published 2020-08-20) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2020-08-20 |
| First published | 2020-05-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Venomaze |
| Maintainers | venomaze |
| Keywords | clipboard, event, clipboard event |

## Links

- npm: https://www.npmjs.com/package/clipboard-listener
- Repository: https://github.com/venomaze/clipboard-listener
- Homepage: https://github.com/venomaze/clipboard-listener#readme
- Issues: https://github.com/venomaze/clipboard-listener/issues
- npm.io page: https://npm.io/package/clipboard-listener

## Dependencies (1)

- [copy-paste](https://npm.io/package/copy-paste.md) ^1.3.0

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 0.2.3 (latest) — 2020-08-20
- 0.2.2 — 2020-08-04
- 0.2.1 — 2020-08-04
- 0.2.0 — 2020-05-31
- 0.1.0 — 2020-05-28

## README

# clipboard-listener

> Node.js event listener for clipboard changes.

Clipboard-listener uses the [node-copy-paste](https://github.com/xavi-/node-copy-paste) package to get the data from clipboard.

## Installation

To install the clipboard-listener, you can either use [npm](https://npmjs.com/package/clipboard-listener) or GitHub.

```
npm install clipboard-listener
or
git clone https://github.com/venomaze/clipboard-listener.git
```

## Usage

```js
const ClipboardListener = require('clipboard-listener');

/*
 * Create a new instance
 */
const listener = new ClipboardListener({
  timeInterval: 100, // Default to 250
  immediate: true, // Default to false
});

/*
 * Start listening to clipboard changes
 */
listener.on('change', value => {
  console.log(value);
});
```

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