Skip to content

Instantly share code, notes, and snippets.

@bt4R9
Last active May 12, 2020 20:56
Show Gist options
  • Save bt4R9/8bb2738d9faa2e5d5c74e0bc1ce60eb1 to your computer and use it in GitHub Desktop.
Save bt4R9/8bb2738d9faa2e5d5c74e0bc1ce60eb1 to your computer and use it in GitHub Desktop.
const urlExist = require("url-exist");
const urlsToCheck = [
'https://yandex.ru',
'https://google.com',
'https://sdflksdjf281xncdmnse.sdas'
];
(async () => {
for (const url of urlsToCheck) {
console.log(url, await urlExist(url));
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment