2.0.4 • Published 7 months ago

@types/firstline v2.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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

// Type definitions for firstline 2.0
// Project: https://github.com/pensierinmusica/firstline
// Definitions by: Emily Klassen <https://github.com/forivall>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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: Thu, 08 Jul 2021 12:01:39 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Emily Klassen.

2.0.3

7 months ago

2.0.4

7 months ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago