Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

capnp-ts

Package Overview
Dependencies
3
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    capnp-ts

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


Version published
Maintainers
1
Install size
1.06 MB
Created

Changelog

Source

0.7.0 (2021-08-19)

⚠ BREAKING CHANGES

  • capnpc-js is being retired in favor of compiling directly to js from capnpc-ts instead. This makes the one compiler serve both purposes; js-only users who are annoyed by the extra d.ts files may simply delete them. This was done to work around bugs in source-map-support that prevent importing capnp.js files when a capnp.ts file is also present.

Bug Fixes

  • support imports with nested enums (64778e0)

Readme

Source

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.

Keywords

FAQs

Last updated on 19 Aug 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc