$ cnpm install @types/ndjson
npm install --save @types/ndjson
This package contains type definitions for ndjson (https://github.com/maxogden/ndjson).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ndjson.
// Type definitions for ndjson 2.0
// Project: https://github.com/maxogden/ndjson
// Definitions by: Junxiao Shi <https://github.com/yoursunny>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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;
These definitions were written by Junxiao Shi.
Copyright 2013 - present © cnpmjs.org | Home |