This commit is contained in:
garronej 2021-12-01 13:39:57 +01:00
commit 5297ab00ab
54 changed files with 18162 additions and 0 deletions

6
src/tools/is404.ts Normal file
View file

@ -0,0 +1,6 @@
import fetch from "node-fetch";
export function is404(url: string): Promise<boolean> {
return fetch(url).then(({ status }) => status === 404);
}