UNPKG

linguist-js

Version:

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

20 lines (19 loc) 790 B
import analyseFs from './entry/analyseFs.js'; import analyseRaw from './entry/analyseRaw.js'; declare const _default: { /** * Analyse a list of folders and return language statistics * @param inputPaths - An array of file paths to analyse * @param options - Configuration options for the analysis * @returns A promise that resolves to the analysis results */ analyseFolders: typeof analyseFs; /** * Analyse raw content and return language statistics * @param inputContent - An object where keys are filenames and values are file contents * @param options - Configuration options for the analysis * @returns A promise that resolves to the analysis results */ analyseRawContent: typeof analyseRaw; }; export default _default;