mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
6 lines
No EOL
150 B
TypeScript
6 lines
No EOL
150 B
TypeScript
|
|
import fetch from "node-fetch";
|
|
|
|
export function is404(url: string): Promise<boolean> {
|
|
return fetch(url).then(({ status }) => status === 404);
|
|
} |