# @types/post-message-stream

> TypeScript definitions for post-message-stream

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

## Install

```sh
npm install @types/post-message-stream
pnpm add @types/post-message-stream
yarn add @types/post-message-stream
bun add @types/post-message-stream
```

## 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 | 2021-04-08 |
| 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 | 51392 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 3.0.4 (latest) — 2023-11-07
- 3.0.1 (ts3.6) — 2021-07-08
- 3.0.0 (ts3.5) — 2021-04-08
- 3.0.3 — 2023-10-18
- 3.0.2 — 2023-09-24

## README

# Installation
> `npm install --save @types/post-message-stream`

# Summary
This package contains type definitions for post-message-stream (https://github.com/baalexander/node-portscanner).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/post-message-stream.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/post-message-stream/index.d.ts)
````ts
import { Duplex } from "readable-stream";

declare class PostMessageStream extends Duplex {
    _name: string;
    _target: string;
    _targetWindow: Window;
    _origin: string;
    _init: boolean;
    _haveSyn: boolean;

    constructor(props: {
        name: string;
        target: string;
        targetWindow?: Window | undefined;
    });

    _write(
        data: any,
        _encoding: BufferEncoding,
        cb: () => void,
    ): void;
}

export = PostMessageStream;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/readable-stream](https://npmjs.com/package/@types/readable-stream)

# Credits
These definitions were written by [Douglas Duteil](https://github.com/douglasduteil).

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