Add the github-linguist package

This commit only adds a single package and all of its transitive
dependencies. The github-linguist package will be used for counting
lines of code as a baseline for databases we are analyzing.
This commit is contained in:
Andrew Eisenberg 2021-04-22 15:33:01 -07:00
parent 896b4ff181
commit c4a84a93d4
152 changed files with 17057 additions and 24 deletions

43
node_modules/github-linguist/dist/languages.d.ts generated vendored Normal file
View file

@ -0,0 +1,43 @@
export interface DetectorOptions {
}
/**
* detecte program language through file extension
*
* @export
* @class LanguageDetector
*/
export declare class Languages {
extensionMap: {
[key: string]: string;
};
/**
* Creates an instance of Detector.
*/
constructor();
/**
* load language before detecting
*/
private loadExtensionMap;
/**
* Retrieve the regular expressions for a given language.
* This is incomplete, but covers most of the languages we
* see in the wild.
*
* @param language the language to retrieve regexes for
*/
getRegexes(language: string): Regexes;
/**
* return extension map
*/
getExtensionMap(): {
[key: string]: string;
};
}
export interface Regexes {
singleLineComment: RegExp;
multiLineCommentOpen: RegExp;
multiLineCommentOpenStart: RegExp;
multiLineCommentClose: RegExp;
multiLineCommentCloseEnd: RegExp;
multiLineCommentOpenAndClose: RegExp;
}