# cbor-web

> This package bundles the [cbor](../cbor) package for easy use on the web. The following packages are bundled in as well, to reduce the degree of difficulty:

Latest version **10.0.12** (published 2026-03-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install cbor-web
pnpm add cbor-web
yarn add cbor-web
bun add cbor-web
```

## Health

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

Positive: has types; no vulnerabilities; has provenance.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 10.0.12 |
| Published | 2026-03-04 |
| First published | 2021-02-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=20 |
| Dependencies | 0 |
| Unpacked size | 160.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 379 |
| Author | Joe Hildebrand |
| Maintainers | hildjj |

## Links

- npm: https://www.npmjs.com/package/cbor-web
- Repository: https://github.com/hildjj/node-cbor
- Homepage: https://github.com/hildjj/node-cbor/tree/main/packages/cbor-web
- Issues: https://github.com/hildjj/node-cbor/issues
- npm.io page: https://npm.io/package/cbor-web

## Recent versions

- 10.0.12 (latest) — 2026-03-04
- 10.0.11 — 2025-08-26
- 10.0.10 — 2025-08-03
- 10.0.9 — 2025-06-30
- 10.0.3 — 2024-11-06
- 10.0.2 — 2024-10-27
- 9.0.2 — 2024-01-31
- 9.0.1 — 2023-07-21
- 9.0.0 — 2023-05-14
- 8.1.0 — 2021-11-09
- 8.0.2 — 2021-09-29
- 8.0.1 — 2021-08-04
- 8.0.0 — 2021-08-04
- 7.0.6 — 2021-07-06
- 7.0.5 — 2021-04-01
- … 5 more at https://npm.io/package/cbor-web/versions

## README

# cbor-web

This package bundles the [cbor](../cbor) package for easy use on the web.  The following packages are bundled in as well, to reduce the degree of difficulty:

 - [buffer](https://github.com/feross/buffer)
 - [nofilter](https://github.com/hildjj/nofilter)
 - [process](https://github.com/shtylman/node-process)
 - [stream-browserify](https://github.com/browserify/stream-browserify)

## MOVE TO CBOR2

**NOTE**

ALL users of this library should move to the
[cbor2](https://github.com/hildjj/cbor2) library.  It is where most
maintenance and support and all new features are happening.  cbor2 works
natively on the web and does not this set of work-arounds and dependencies.

*Only* catastrophic bugs will be fixed in this library going forward.

## Examples

You can see `cbor-web` in action on the web [here](https://hildjj.github.io/node-cbor/example/).

## Ways to use this

 - you can load this in a script tag, which puts a `cbor` property on the
   window object:

```html
<script src='https://unpkg.com/bignumber.js'></script> <!-- optional -->

<script src='https://unpkg.com/cbor-web'></script>
```

 - You can bundle this with [parcel](https://github.com/parcel-bundler/parcel), [webpack](https://github.com/webpack/webpack), [browserify](https://github.com/browserify/browserify), etc.
 - You can `require('cbor-web')` from node.js, but I wouldn't recommend that unless you're trying to use the exact same paths for backend and frontend codebases, for example.
 - You can `import cbor from 'cbor-web'` in either node or in some web contexts.  Caveats to using in node are the same as above, but someimes you might *really* want an ES6 module, and be willing to deal with the downsides.  Note that as soon as Node 10 is no longer supported, the main `cbor` package will work toward becoming a native ES6 module.

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