# Check URLs function for Hacker News and Lobsters For use with my daily log link list as a way of identifying submissions to Hacker News and Lobsters so that I may link to them from the links detail page. ## Example Usage ```js import { readFile } from "node:fs/promises"; const content = await readFile("urls.txt", "utf8"); const urls = content .split("\n") .map(x => x.trim()) .filter(Boolean); const results = await checkUrls(urls, 5); console.log(JSON.stringify(results, null, 2)); ```