# @types/nkzq__copy-paste

> TypeScript definitions for @nkzq/copy-paste

Latest version **2.0.2** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/nkzq__copy-paste
pnpm add @types/nkzq__copy-paste
yarn add @types/nkzq__copy-paste
bun add @types/nkzq__copy-paste
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2023-11-07 |
| First published | 2022-10-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51418 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/nkzq__copy-paste
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nkzq__copy-paste
- npm.io page: https://npm.io/package/@types/nkzq__copy-paste

## Recent versions

- 2.0.2 (latest) — 2023-11-07
- 2.0.0 (ts4.1) — 2022-10-26
- 2.0.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/nkzq__copy-paste`

# Summary
This package contains type definitions for @nkzq/copy-paste (https://github.com/Nkzq/node-copy-paste).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nkzq__copy-paste.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nkzq__copy-paste/index.d.ts)
````ts
export type CopyCallback = (err: Error) => void;
export type PasteCallback = (err: Error, content: string) => void;

/**
 * Asynchronously replaces the current contents of the clip board with text.
 * content Takes either a string, array, object, or readable stream.
 * callback will fire when the copy operation is complete.
 * Returns the same value passed in.
 */
export function copy<T>(content: T, callback?: CopyCallback): T;

/**
 * Synchronously returns the current contents of the system clip board.
 * Note: The synchronous version of paste is not always availabled.
 * An error message is shown if the synchronous version of paste is used on an unsupported platform.
 * The asynchronous version of paste is always available.
 * Returns the current contents of the system clip board.
 */
export function paste(): string;

/**
 * Asynchronously returns the current contents of the system clip board.
 * The contents of the system clip board are passed to the callback as the second parameter.
 */
export function paste(callback: PasteCallback): void;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Sfilata](https://github.com/sfilata).

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