# @types/parse5-serializer-stream

> TypeScript definitions for parse5-serializer-stream

Latest version **5.0.6** (published 2025-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/parse5-serializer-stream
pnpm add @types/parse5-serializer-stream
yarn add @types/parse5-serializer-stream
bun add @types/parse5-serializer-stream
```

## Health

**Score 65/100 (B)** — status: stable.

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 5.0.6 |
| Published | 2025-10-24 |
| First published | 2018-06-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

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

## Dependencies (2)

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

## Recent versions

- 5.0.6 (latest) — 2025-10-24
- 5.0.5 (ts5.1) — 2023-11-07
- 5.0.2 (ts4.2) — 2022-07-20
- 5.0.1 (ts3.5) — 2018-06-20
- 5.0.4 — 2023-10-18
- 5.0.3 — 2023-09-24
- 5.0.0 — 2018-06-06

## README

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

import * as parse5 from "parse5";
import stream = require("stream");

/**
 * Streaming AST node to an HTML serializer.
 * A [readable stream](https://nodejs.org/api/stream.html#stream_class_stream_readable).
 *
 * ** NOTE:** This API is available only for Node.js.
 *
 * @example
 * ```js
 *
 * const parse5 = require('parse5');
 * const fs = require('fs');
 *
 * const file = fs.createWriteStream('/home/index.html');
 *
 * // Serializes the parsed document to HTML and writes it to the file.
 * const document = parse5.parse('<body>Who is John Galt?</body>');
 * const serializer = new parse5.SerializerStream(document);
 *
 * serializer.pipe(file);
 * ```
 */
declare class SerializerStream extends stream.Readable {
    /**
     * Streaming AST node to an HTML serializer. A readable stream.
     *
     * @param node - Node to serialize.
     * @param options - Serialization options.
     */
    constructor(node: parse5.Node, options?: parse5.SerializerOptions);
}

declare namespace SerializerStream {}

export = SerializerStream;

````

### Additional Details
 * Last updated: Fri, 24 Oct 2025 04:02:41 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/parse5](https://npmjs.com/package/@types/parse5)

# Credits
These definitions were written by [Ivan Nikulin](https://github.com/inikulin).

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