# @types/pg-copy-streams

> TypeScript definitions for pg-copy-streams

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

## Install

```sh
npm install @types/pg-copy-streams
pnpm add @types/pg-copy-streams
yarn add @types/pg-copy-streams
bun add @types/pg-copy-streams
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.5 |
| Published | 2023-11-07 |
| First published | 2019-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | types |

## Links

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

## Dependencies (2)

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

## Recent versions

- 1.2.5 (latest) — 2023-11-07
- 1.2.2 (ts4.2) — 2023-02-01
- 1.2.1 (ts2.3) — 2019-09-04
- 1.2.0 (ts2.0) — 2019-02-23
- 1.2.4 — 2023-10-18
- 1.2.3 — 2023-09-24

## README

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

import { Connection, Submittable } from "pg";
import { Readable, ReadableOptions, Writable, WritableOptions } from "stream";

export function from(txt: string, options?: WritableOptions): CopyStreamQuery;
export function to(txt: string, options?: ReadableOptions): CopyToStreamQuery;

export class CopyStreamQuery extends Writable implements Submittable {
    text: string;
    rowCount: number;
    submit(connection: Connection): void;
}

export class CopyToStreamQuery extends Readable implements Submittable {
    text: string;
    rowCount: number;
    submit(connection: Connection): void;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/pg](https://npmjs.com/package/@types/pg)

# Credits
These definitions were written by [Brian Crowell](https://github.com/fluggo).

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