npm.io
2.0.4 • Published 2 years ago

@types/firstline

Licence
MIT
Version
2.0.4
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.3K

Installation

npm install --save @types/firstline

Summary

This package contains type definitions for firstline (https://github.com/pensierinmusica/firstline).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/firstline.

index.d.ts

/// <reference types="node" />
export = firstline;

declare function firstline(filePath: string, opts?: firstline.Options): Promise<string>;

declare namespace firstline {
    interface Options {
        /** @default 'utf8' */
        encoding?: BufferEncoding | undefined;
        /** @default '\n' */
        lineEnding?: string | undefined;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Emily Klassen.