# @types/iconv

> TypeScript definitions for iconv

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

## Install

```sh
npm install @types/iconv
pnpm add @types/iconv
yarn add @types/iconv
bun add @types/iconv
```

## 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 | 3.0.4 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51432 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 3.0.4 (latest) — 2023-11-07
- 3.0.1 (ts3.8) — 2021-12-23
- 3.0.0 (ts3.6) — 2021-06-21
- 2.1.16 (ts2.0) — 2017-08-21
- 3.0.3 — 2023-10-18
- 3.0.2 — 2023-09-26
- 2.1.15 — 2016-09-19
- 2.1.14 — 2016-07-14
- 2.1.13-alpha — 2016-07-08
- 2.1.12-alpha — 2016-07-04
- 2.1.11-alpha — 2016-07-02
- 2.1.10-alpha — 2016-07-01
- 2.1.9-alpha — 2016-05-25
- 2.1.8-alpha — 2016-05-20
- 2.1.3-alpha — 2016-05-19
- … 1 more at https://npm.io/package/@types/iconv/versions

## README

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

import { Stream } from "stream";

interface Static {
    new(fromEncoding: string, toEncoding: string): Iconv;
    (fromEncoding: string, toEncoding: string): Iconv;
    prototype: Iconv;
}

export interface Iconv extends Stream {
    readonly writable: true;
    convert(input: string, encoding?: BufferEncoding): Buffer;
    convert(input: Buffer): Buffer;
    write(input: string, encoding?: BufferEncoding): boolean;
    write(input: Buffer): boolean;

    end(input: string, encoding?: BufferEncoding): void;
    end(input?: Buffer): void;
}

export const Iconv: Static;

export {};

````

### 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 .

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