Last active
May 12, 2020 20:56
-
-
Save bt4R9/8bb2738d9faa2e5d5c74e0bc1ce60eb1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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