# @types/geobuf

> TypeScript definitions for geobuf

Latest version **4.0.0** (published 2026-09-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/geobuf
pnpm add @types/geobuf
yarn add @types/geobuf
bun add @types/geobuf
```

## Health

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

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; popular repo; extremely popular.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2026-09-16 |
| First published | 2019-11-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 2 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

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

## Dependencies (2)

- [pbf](https://npm.io/package/pbf.md) ^4.0.1
- [@types/geojson](https://npm.io/package/@types/geojson.md) *

## Recent versions

- 4.0.0 (latest) — 2026-09-16
- 3.0.4 (ts5.5) — 2023-11-07
- 3.0.1 (ts4.4) — 2021-07-08
- 3.0.0 (ts3.5) — 2019-11-20
- 3.0.3 — 2023-10-18
- 3.0.2 — 2023-09-20

## README

# Installation
> `npm install --save @types/geobuf`

# Summary
This package contains type definitions for geobuf (https://github.com/mapbox/geobuf).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/geobuf.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/geobuf/index.d.ts)
````ts
import { GeoJSON } from "geojson";
import Pbf from "pbf";

export function decode(pbf: Pbf): GeoJSON;
export function encode(obj: GeoJSON, pbf: Pbf): Uint8Array;

````

### Additional Details
 * Last updated: Wed, 16 Sep 2026 03:38:37 GMT
 * Dependencies: [@types/geojson](https://npmjs.com/package/@types/geojson), [pbf](https://npmjs.com/package/pbf)

# Credits
These definitions were written by [Chad Burt](https://github.com/underbluewaters), and [Yue JIN](https://github.com/kingyue737).

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