Protobuf.js Decompiler
Important
This program might output an incorrect protobuf file without erroring, if you notice this happening please file an issue.
Note
Precompiled binaries are not yet available, you will need to know how to use cargo to run this project.
Note
Currently this codebase is hardcoded to decompile the @replit/protocol npm package. Adding functionality to decompile any npm package is a work in progress.
Program to decompile protobuf code generated by protobuf.js
Usage: pbjs-decompiler [OPTIONS]
Options:
-v, --package-version <PACKAGE_VERSION> [default: latest]
-o, --outfile <OUTFILE> [default: out.proto]
-h, --help Print help
-V, --version Print version
Running cargo run --
will decompile the latest version of the @replit/protocol npm package for you and write the output to out.proto