Skip to content

Latest commit

 

History

History
 
 

capnpc-js

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

capnpc-js

A Cap'n Proto schema compiler for JavaScript.

Basic usage (assuming capnp is already installed):

npm install -g capnpc-js
capnpc -o js path/to/myschema.capnp

This will generate a file at path/to/myschema.capnp.js.

This compiler just proxies the CodeGeneratorRequest out to the capnpc-ts package to generate TypeScript source, then runs the TypeScript compiler to get the final output JavaScript.

Visit https://github.com/jdiaz5513/capnp-ts for an extended README.