@types/proxy-from-env
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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 09:09:39 GMT
  • Dependencies: @types/node

Credits

These definitions were written by JasonHK, and FloPes.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/proxy-from-env

Weekly Downloads

34,136

Version

1.0.4

License

MIT

Unpacked Size

3.54 kB

Total Files

5

Last publish

Collaborators

  • types