link-exists
Version:
A super lightweight JavaScript / TypeScript library to check whether a given url is valid and exists or not.
17 lines (16 loc) • 453 B
TypeScript
interface LocalConfig {
/**
* default false.
*
* if `ignoreProtocol` is true, it will validate urls without https:// or http:// as fine.
*
* if `ignoreProtocol` is false (default), it will validate urls without https:// or http:// as not fine
*/
ignoreProtocol: boolean;
}
/**
* link validator configuration for custom validator
*/
export interface LinkValidatorConfig extends Partial<LocalConfig> {
}
export {};