Spaces:
Sleeping
Sleeping
Download apps/api/src/scraper/scrapeURL/lib/cacheableLookup.ts from s-eto-hub/firecrawl-api: direct link, hf CLI and curl.
- Browser
- Download file 262 Bytes
-
https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/api/src/scraper/scrapeURL/lib/cacheableLookup.ts
- Command line
-
hf download hf://spaces/s-eto-hub/firecrawl-api/apps/api/src/scraper/scrapeURL/lib/cacheableLookup.ts
-
curl -L -o cacheableLookup.ts https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/api/src/scraper/scrapeURL/lib/cacheableLookup.ts
262 Bytes
| import CacheableLookup from "cacheable-lookup"; | |
| import dns from "dns"; | |
| import { config } from "../../../config"; | |
| export const cacheableLookup = | |
| config.SENTRY_ENVIRONMENT === "dev" | |
| ? { lookup: dns.lookup, install: () => {} } | |
| : new CacheableLookup({}); | |