Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.18 KB

README.md

File metadata and controls

30 lines (23 loc) · 1.18 KB

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.

Usage

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

Basic Usage

Running cargo run -- will decompile the latest version of the @replit/protocol npm package for you and write the output to out.proto