UNPKG

linguist-js

Version:

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

10 lines (9 loc) 349 B
import { HeuristicsSchema, LanguagesScema } from '../../types/schema.js'; type LoadedData = { langData: LanguagesScema; heuristicsData: HeuristicsSchema; vendorPaths: string[]; }; /** Load data from github-linguist web repo or cached local file. */ export default function retrieveData(offline: boolean): Promise<LoadedData>; export {};