# @apimatic/proxy

> provides utilities to route requests through a configurable proxy

Latest version **0.1.4** (published 2025-12-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @apimatic/proxy
pnpm add @apimatic/proxy
yarn add @apimatic/proxy
bun add @apimatic/proxy
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2025-12-24 |
| First published | 2025-07-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14.15.0 \|\| >=16.0.0 |
| Dependencies | 2 |
| Unpacked size | 8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | APIMatic Ltd. |
| Maintainers | apimaticdev, mehdi991, maryamadnan3, hamzamahmood, aliasghar1070, talhafaheem |

## Links

- npm: https://www.npmjs.com/package/@apimatic/proxy
- Repository: https://github.com/apimatic/apimatic-js-runtime
- Homepage: https://github.com/apimatic/apimatic-js-runtime#readme
- Issues: https://github.com/apimatic/apimatic-js-runtime/issues
- npm.io page: https://npm.io/package/@apimatic/proxy

## Dependencies (2)

- [http-proxy-agent](https://npm.io/package/http-proxy-agent.md) ^7.0.2
- [https-proxy-agent](https://npm.io/package/https-proxy-agent.md) ^7.0.6

## Recent versions

- 0.1.4 (latest) — 2025-12-24
- 0.1.3 — 2025-09-30
- 0.1.3-alpha.1 — 2025-09-29
- 0.1.3-alpha.0 — 2025-09-29
- 0.1.2 — 2025-08-13
- 0.1.1 — 2025-07-28

## README

# APIMatic Proxy Library for JavaScript SDKs

This package provides utilities to create HTTP and HTTPS proxy agents based on configuration, with conditional behavior for both Node.js and browser environments.

The exported functionality includes:

* **Proxy Agent**: Generates HTTP and HTTPS proxy agents using the provided proxy settings. In browser environments, returns undefined with a warning since proxy agents are not supported.
* **Proxy Settings Interface**: Defines the proxy configuration, including a required address and optional port and authentication credentials.

This library is used by JavaScript SDKs generated by the [APIMatic Code Generator](http://www.apimatic.io). For details on supported platforms and build artifacts, see the [Build and Usage Section](https://github.com/apimatic/apimatic-js-runtime?tab=readme-ov-file#builds-and-usage).

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