npm.io
1.0.4 • Published 2 years ago

@types/proxy-from-env

Licence
MIT
Version
1.0.4
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/proxy-from-env

Summary

This package contains type definitions for proxy-from-env (https://github.com/Rob--W/proxy-from-env#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/proxy-from-env.

index.d.ts

/// <reference types="node" />

import { Url } from "url";

/**
 * Takes an input URL and returns the desired proxy URL. If no proxy is set, an
 * empty string is returned.
 * @param url The URL
 * @returns The URL of the proxy that should handle the request to the given
 *          URL.
 */
export function getProxyForUrl(url: string | Url): string;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: @types/node

Credits

These definitions were written by JasonHK, and FloPes.