UNPKG

@hashangit/breachhound

Version:

An efficient OSINT tool for uncovering digital footprints associated with a username. TypeScript port of GoSearch.

28 lines 1.17 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.fetchWebsiteConfig = fetchWebsiteConfig; const axios_1 = __importDefault(require("axios")); const utils_1 = require("./utils"); const CONFIG_URL = 'https://raw.githubusercontent.com/ibnaleem/gosearch/main/data.json'; async function fetchWebsiteConfig() { try { // console.log(`[*] Fetching config from ${CONFIG_URL}...`); // Library shouldn't log directly const response = await axios_1.default.get(CONFIG_URL, { headers: { 'User-Agent': utils_1.DEFAULT_USER_AGENT }, timeout: 15000, }); if (response.status === 200 && response.data?.websites) { return response.data; } console.error(`[-] Failed to fetch valid config. Status: ${response.status}`); // Log errors return null; } catch (error) { console.error('[-] Error fetching website configuration:', error.message); return null; } } //# sourceMappingURL=config.js.map