google-trends-api-client
Version:
An fully typed and easy to use client for the google trends api.
12 lines • 460 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.useProxyUrlIfPossible = void 0;
const useProxyUrlIfPossible = async ({ proxyConfig, }) => {
if (!proxyConfig)
return null;
return {
proxyUrl: `http://${proxyConfig.username}:${proxyConfig.password}@${proxyConfig.host}:${proxyConfig.port}`,
};
};
exports.useProxyUrlIfPossible = useProxyUrlIfPossible;
//# sourceMappingURL=useProxyIfPossible.js.map