# @types/img-clipboard

> TypeScript definitions for img-clipboard

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

## Install

```sh
npm install @types/img-clipboard
pnpm add @types/img-clipboard
yarn add @types/img-clipboard
bun add @types/img-clipboard
```

## Health

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

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2023-11-07 |
| First published | 2023-05-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 1.1.2 (latest) — 2023-11-07
- 1.1.0 (ts4.3) — 2023-05-28
- 1.1.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/img-clipboard`

# Summary
This package contains type definitions for img-clipboard (https://github.com/kufii/img-clipboard).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/img-clipboard.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/img-clipboard/index.d.ts)
````ts
/// <reference types="node" />

import { ExecException } from "child_process";

/**
 * Copy an image to the clipboard
 * @param img - The raw image data or file path of the image
 * @returns The result of the inner `child_process.exec` call - `[error, stdout, stderr]`
 */
export function copyImg(img: Buffer | string): Promise<[ExecException | null, string, string]>;

/** Check if the current environment is Wayland */
export function isWayland(): boolean;

export const ErrorCodes: {
    COMMAND_NOT_FOUND: 127;
};

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Nigecat](https://github.com/Nigecat).

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