Decompile baked protobuf descriptors into human-readable working .proto
npm install unbake-protoDecompile protoc-compiled protobuf descriptor into human-readable .proto which is semantically equivalent to the original.
- file descriptor (binary)
- python (*_pb2.py)
``shell`
npx unbake-proto # output to stdout
npx unbake-proto [out_folder] # output to file(s)
| Option | Description |
| --- | --- |
| --python | Use a Python file as input |
prepare your .proto file and then run the following commands
`shell`
protoc --descriptor_set_out=baked.pb --include_imports original.proto
npx unbake-proto baked.pb > unbaked.proto
there should be no difference between original.proto and unbaked.proto !
requires pnpm`