# @protobufjs/fetch

> Fetches the contents of a file accross node and browsers.

Latest version **1.1.1** (published 2026-05-17) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install @protobufjs/fetch
pnpm add @protobufjs/fetch
yarn add @protobufjs/fetch
bun add @protobufjs/fetch
```

## Health

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

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2026-05-17 |
| First published | 2016-12-12 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 14.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10586 |
| Author | Daniel Wirtz |
| Maintainers | dcode, protobufjs, google-wombot |

## Links

- npm: https://www.npmjs.com/package/@protobufjs/fetch
- Repository: https://github.com/dcodeIO/protobuf.js
- Homepage: https://github.com/dcodeIO/protobuf.js#readme
- Issues: https://github.com/dcodeIO/protobuf.js/issues
- npm.io page: https://npm.io/package/@protobufjs/fetch

## Dependencies (1)

- [@protobufjs/aspromise](https://npm.io/package/@protobufjs/aspromise.md) ^1.1.1

## Recent versions

- 1.1.1 (latest) — 2026-05-17
- 1.1.0 — 2017-01-27
- 1.0.4 — 2017-01-03
- 1.0.3 — 2016-12-20
- 1.0.2 — 2016-12-18
- 1.0.1 — 2016-12-12
- 1.0.0 — 2016-12-12

## README

@protobufjs/fetch
=================
[![npm](https://img.shields.io/npm/v/@protobufjs/fetch.svg)](https://www.npmjs.com/package/@protobufjs/fetch)

Fetches the contents of a file accross node and browsers.

API
---

* **fetch(path: `string`, [options: { binary: boolean } ], [callback: `function(error: ?Error, [contents: string])`]): `Promise<string|Uint8Array>|undefined`**
  Fetches the contents of a file.

**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause)

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