# tsbuffer-schema

> TSBuffer schema declarations

Latest version **2.2.0** (published 2022-02-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install tsbuffer-schema
pnpm add tsbuffer-schema
yarn add tsbuffer-schema
bun add tsbuffer-schema
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2022-02-25 |
| First published | 2019-04-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 19.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | k8w |
| Maintainers | k8w |
| Keywords | TSBuffer, tsbuf, buffer, k8w, protobuf, TypeScript, interface, serialization, JSON, schema, 序列化, binary, encoding |

## Links

- npm: https://www.npmjs.com/package/tsbuffer-schema
- Repository: https://github.com/k8w/tsbuffer-schema
- Homepage: https://github.com/k8w/tsbuffer#readme
- Issues: https://github.com/k8w/tsbuffer-schema/issues
- npm.io page: https://npm.io/package/tsbuffer-schema

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 2.2.0 (latest) — 2022-02-25
- 2.2.0-dev.2 (dev) — 2022-02-25
- 2.2.0-dev.1 — 2022-02-08
- 2.2.0-dev.0 — 2022-01-27
- 2.1.1 — 2021-11-13
- 2.1.0 — 2021-11-10
- 2.0.9 — 2021-11-10
- 2.0.8 — 2021-11-04
- 2.0.7 — 2021-11-04
- 2.0.6 — 2021-10-17
- 2.0.6-dev.0 — 2021-10-17
- 2.0.5 — 2021-10-17
- 2.0.4 — 2021-10-17
- 2.0.3 — 2021-10-17
- 2.0.2 — 2021-06-16
- … 51 more at https://npm.io/package/tsbuffer-schema/versions

## README

# TSBuffer Schema

## Introduction
- [TSBuffer](https://github.com/k8w/tsbuffer) is a open-source library for TypeScript runtime type checking and binary serialization.
- `TSBufferSchema` is a schema for TypeScript types, which is used by `TSBuffer`.
- `TSBufferProto` is a collection of a grouop of `TSBufferSchema`, which can be generated by [tsbuffer-proto-generator](https://github.com/k8w/tsbuffer-proto-generator).
- Number type alias (`int`, `uint`...), for advacned type checking and binary encoding optimization.
- Extra utility type: [Overwrite](docs/api/tsbuffer-schema.overwrite.md).

## API
See [API Reference](./docs/api/tsbuffer-schema.md).

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