website-scrap-engine
Version:
Configurable website scraper in typescript
14 lines • 608 B
TypeScript
import { ResourceType } from '../resource.js';
export declare const binaryExtension: Record<string | number, number>;
/**
* Return the extension of the path or the url,
* from the last '.' to end of string in the last portion of the path.
* If there is no '.' in the last portion of the path,
* then it returns an empty string.
*
* @see path.extname
* @param url the url to evaluate.
*/
export declare function lowerCaseExtension(url: string): string | void;
export declare function detectResourceType(url: string, type: ResourceType): ResourceType;
//# sourceMappingURL=detect-resource-type.d.ts.map