@types/ndjson
Version:
TypeScript definitions for ndjson
32 lines (22 loc) • 1 kB
Markdown
# Installation
> `npm install --save @types/ndjson`
# Summary
This package contains type definitions for ndjson (https://github.com/maxogden/ndjson).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ndjson.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ndjson/index.d.ts)
````ts
/// <reference types="node" />
import { DuplexOptions, Transform } from "stream";
import { ThroughStream } from "through";
export interface ParseOptions {
strict?: boolean | undefined;
}
export function parse(opts?: ParseOptions): ThroughStream;
export function stringify(opts?: DuplexOptions): Transform;
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 09:09:39 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/through](https://npmjs.com/package/@types/through)
# Credits
These definitions were written by [Junxiao Shi](https://github.com/yoursunny).