# @types/proxy-from-env

> TypeScript definitions for proxy-from-env

Latest version **1.0.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/proxy-from-env
pnpm add @types/proxy-from-env
yarn add @types/proxy-from-env
bun add @types/proxy-from-env
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2023-11-07 |
| First published | 2019-06-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/proxy-from-env
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/proxy-from-env
- npm.io page: https://npm.io/package/@types/proxy-from-env

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 1.0.4 (latest) — 2023-11-07
- 1.0.1 (ts2.8) — 2020-02-19
- 1.0.0 (ts2.0) — 2019-06-05
- 1.0.3 — 2023-10-18
- 1.0.2 — 2023-09-24

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/proxy-from-env/index.d.ts)
````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](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [JasonHK](https://github.com/JasonHK), and [FloPes](https://github.com/flopes89).

---
_Source: https://npm.io/package/@types/proxy-from-env · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
