capnp-ts

Strongly typed Cap'n Proto implementation for the browser and Node.js using TypeScript

MIT 16 个版本
安装
npm install capnp-ts
yarn add capnp-ts
pnpm add capnp-ts
bun add capnp-ts
README

capnp-ts

A strongly typed Cap'n Proto implementation for the browser and Node.js using TypeScript.

Here's a quick usage example:

import * as capnp from 'capnp-ts';

import {MyStruct} from './myschema.capnp';

export function loadMessage(buffer: ArrayBuffer): MyStruct {

  const message = capnp.Message.fromArrayBuffer(buffer);

  return message.getRoot(MyStruct);

}

An extended readme is available on the project site: https://github.com/jdiaz5513/capnp-ts.

版本列表
0.8.0 2026-07-10
0.7.0 2021-08-19
0.6.0 2021-08-19
0.5.1 2021-08-18
0.5.0 2021-08-18
0.4.0 2018-09-27
0.3.0 2018-08-29
0.2.4 2017-11-24
0.2.0 2017-11-19
0.1.6 2017-11-03
0.1.5 2017-11-02
0.1.4 2017-10-20
0.1.3 2017-09-25
0.1.2 2017-09-19
0.1.1 2017-09-19
0.1.0 2017-08-31