UNPKG

linguist-js

Version:

Analyse the programming languages used in a folder or from raw content, using the same rules that GitHub Linguist does.

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>;