UNPKG

link-exists

Version:

A super lightweight JavaScript / TypeScript library to check whether a given url is valid and exists or not.

10 lines (9 loc) 398 B
import { LinkValidatorConfig } from './config'; /** * Check whether a link exists or not. * * @param link string url to be checked * @param config optional configuration to run validator as per your custom requirement * @returns {boolean} returns whether the given link is reachable or nots */ export declare function linkExists(link: string, config?: LinkValidatorConfig): Promise<boolean>;