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

2.0.4 • Public • Published

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 03:09:37 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Emily Klassen.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/firstline

Weekly Downloads

721

Version

2.0.4

License

MIT

Unpacked Size

3.33 kB

Total Files

5

Last publish

Collaborators

  • types