UNPKG

linguist-js

Version:

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

12 lines (11 loc) 506 B
import { FileGlob, RelFile } from '../../types/types.js'; import { FlagAttributes } from '../parsing/parseGitattributes.js'; /** Stores parsed attribute information per file glob */ export default class Attributes { #private; constructor(); get attributes(): Record<FileGlob, FlagAttributes>; add(glob: FileGlob, attributes: FlagAttributes): void; getFlaggedGlobs(attr: keyof FlagAttributes, val: boolean): string[]; findAttrsForPath(relFilePath: RelFile): FlagAttributes | null; }