UNPKG

linguist-js

Version:

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

18 lines (17 loc) 515 B
import * as T from '../../types/types.js'; export type FlagAttributes = { 'vendored': boolean | null; 'generated': boolean | null; 'documentation': boolean | null; 'detectable': boolean | null; 'binary': boolean | null; 'language': T.LanguageResult; }; export type ParsedGitattributes = Array<{ glob: T.FileGlob; attrs: FlagAttributes; }>; /** * Parses a gitattributes file. */ export default function parseGitattributes(content: string, folderRoot?: string): ParsedGitattributes;