Negligible Participation Metric

    @types/n-readlines
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.3 • Public • Published

    Installation

    npm install --save @types/n-readlines

    Summary

    This package contains type definitions for n-readlines (https://github.com/nacholibre/node-readlines).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/n-readlines.

    index.d.ts

    // Type definitions for n-readlines 1.0
    // Project: https://github.com/nacholibre/node-readlines
    // Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.3
    
    /// <reference types="node" />
    
    import { PathLike } from 'fs';
    
    export = LineByLine;
    
    declare class LineByLine {
        constructor(file: PathLike | number, options?: Options)
        next(): Buffer | false;
        reset(): void;
        close(): void;
    }
    
    interface Options {
        readChunk?: number | undefined;
        newLineCharacter?: string | undefined;
    }

    Additional Details

    • Last updated: Thu, 23 Dec 2021 23:35:09 GMT
    • Dependencies: @types/node
    • Global values: none

    Credits

    These definitions were written by DefinitelyTyped.

    Keywords

    none

    Install

    npm i @types/n-readlines

    DownloadsWeekly Downloads

    2,176

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    3.9 kB

    Total Files

    4

    Last publish

    Collaborators

    • types