# @types/node-expat

> TypeScript definitions for node-expat

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

## Install

```sh
npm install @types/node-expat
pnpm add @types/node-expat
yarn add @types/node-expat
bun add @types/node-expat
```

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

## Links

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

## Dependencies (1)

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

## Recent versions

- 2.3.5 (latest) — 2023-11-07
- 2.3.2 (ts3.8) — 2022-01-01
- 2.3.1 (ts3.2) — 2020-05-12
- 2.3.4 — 2023-10-18
- 2.3.3 — 2023-09-23
- 2.3.0 — 2019-11-18

## README

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

export class Parser extends Stream {
    constructor(encoding?: string);

    // encoding: string;
    // Stream API
    writable: boolean;
    readable: boolean;

    _getNewParser(): Parser;
    // emit(): Function;

    parse(buf: Buffer | string, isFinal?: boolean): boolean;

    setEncoding(encoding: BufferEncoding): void;

    setUnknownEncoding(map: number[], convert?: string): void;

    getError(): string;

    stop(): void;
    pause(): void;
    resume(): void;

    destroy(): any;

    destroySoon(): void;

    write(data: Buffer | string): boolean;

    end(cb?: () => void): any;
    end(chunk: any, cb?: () => void): any;
    end(chunk: any, encoding: BufferEncoding, cb?: () => void): any;

    reset(): void;

    getCurrentLineNumber(): number;
    getCurrentColumnNumber(): number;
    getCurrentByteIndex(): number;
}

export function createParser(cb?: (...args: any[]) => void): Parser;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [winston01](https://github.com/winston01).

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