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) • 322 B
TypeScript
import * as T from './types/types.js';
declare function analyse(path?: string, opts?: T.Options): Promise<T.Results>;
declare function analyse(paths?: string[], opts?: T.Options): Promise<T.Results>;
declare function analyse(content?: Record<string, string>, opts?: T.Options): Promise<T.Results>;
export default analyse;