UNPKG

linguist-js

Version:

Analyse languages used in a folder. Powered by GitHub Linguist, although it doesn't need to be installed.

6 lines (5 loc) 187 B
/** * Read part of a file on disc. * @throws 'EPERM' if the file is not readable. */ export default function readFileChunk(filename: string, onlyFirstLine?: boolean): Promise<string>;