capnp-ts
    TypeScript icon, indicating that this package has built-in type declarations

    0.7.0 • Public • Published

    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.

    Install

    npm i capnp-ts

    DownloadsWeekly Downloads

    287

    Version

    0.7.0

    License

    MIT

    Unpacked Size

    1.02 MB

    Total Files

    233

    Last publish

    Collaborators

    • jdiaz5513