# @apimatic/file-wrapper

> This package provides utilities for wrapping files with metadata for HTTP requests.

Latest version **0.3.9** (published 2025-11-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @apimatic/file-wrapper
pnpm add @apimatic/file-wrapper
yarn add @apimatic/file-wrapper
bun add @apimatic/file-wrapper
```

## 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.3.9 |
| Published | 2025-11-04 |
| First published | 2023-01-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14.15.0 \|\| >=16.0.0 |
| Dependencies | 1 |
| Unpacked size | 10.4 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/file-wrapper
- 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/file-wrapper

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) 2.8.1

## Recent versions

- 0.3.9 (latest) — 2025-11-04
- 0.3.8 — 2025-09-30
- 0.3.8-alpha.1 — 2025-09-29
- 0.3.8-alpha.0 — 2025-09-29
- 0.3.7 — 2025-08-13
- 0.3.6 — 2025-07-11
- 0.3.5 — 2025-05-15
- 0.3.4 — 2024-12-12
- 0.3.3 — 2024-09-27
- 0.3.2 — 2024-05-28
- 0.3.1 — 2023-06-08
- 0.3.0 — 2023-05-18
- 0.2.0 — 2023-04-04
- 0.1.0 — 2023-01-31

## README

# APIMatic File Wrapper Library for JavaScript SDKs

This package provides utilities for wrapping files with metadata for HTTP requests.

The exported classes and functions include:

* **File Wrapper Class**: Encapsulates a file (Blob or stream) along with optional metadata such as MIME type, filename, and custom headers for multipart HTTP requests.
* **Type Guard for File Wrapper**: Identifies if a given value is an instance of the File Wrapper class.
* **Deep Cloning**: Creates a deep copy of a File Wrapper instance, including its metadata and headers.

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/file-wrapper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
