2.0.4 • Published 7 months ago
@types/firstline v2.0.4
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.