one-link/node_modules/capnp-ts
naudachu 56ee41aa6c init 2024-05-13 21:20:32 +05:00
..
src init 2024-05-13 21:20:32 +05:00
CHANGELOG.md init 2024-05-13 21:20:32 +05:00
README.md init 2024-05-13 21:20:32 +05:00
package.json init 2024-05-13 21:20:32 +05:00
tsconfig.json init 2024-05-13 21:20:32 +05:00

README.md

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.