# @types/global-agent

> TypeScript definitions for global-agent

Latest version **3.0.0** (published 2025-02-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/global-agent
pnpm add @types/global-agent
yarn add @types/global-agent
bun add @types/global-agent
```

## Health

**Score 55/100 (C)** — status: stable.

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

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2025-02-21 |
| First published | 2020-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51437 |
| Maintainers | types |

## Links

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

## Recent versions

- 3.0.0 (latest) — 2025-02-21
- 2.1.3 (ts4.9) — 2023-11-07
- 2.1.1 (ts3.9) — 2021-07-08
- 2.1.0 (ts3.5) — 2020-01-27
- 2.1.2 — 2023-10-18

## README

# Installation
> `npm install --save @types/global-agent`

# Summary
This package contains type definitions for global-agent (https://github.com/gajus/global-agent#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/global-agent.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/global-agent/index.d.ts)
````ts
export interface ProxyAgentConfigurationInputType {
    environmentVariableNamespace?: string | undefined;
    forceGlobalAgent?: boolean | undefined;
    socketConnectionTimeout?: number | undefined;
}

export interface ProxyAgentConfigurationType {
    HTTP_PROXY: string | null;
    HTTPS_PROXY: string | null;
    NO_PROXY: string | null;
}

export function bootstrap(configurationInput?: ProxyAgentConfigurationInputType): boolean;
export function createGlobalProxyAgent(
    configurationInput?: ProxyAgentConfigurationInputType,
): ProxyAgentConfigurationType;

````

### Additional Details
 * Last updated: Fri, 21 Feb 2025 17:32:49 GMT
 * Dependencies: none

# Credits
These definitions were written by [Jamie Magee](https://github.com/JamieMagee).

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