npm.io
2.0.4 • Published 2 years ago

@types/ndjson

Licence
MIT
Version
2.0.4
Deps
2
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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

/// <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

Credits

These definitions were written by Junxiao Shi.