1.0.9 • Published 3 years ago

depbjs v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Protobufjs Decompiler

A Simple Decompiler for Protobufjs.

Install

npm install -g depbjs

Usage

depbjs -i target.js -o target.proto

Example

pbjs -t commonjs tests/test.proto -o tests/test.js
depbjs -i tests/test.js -o tests/output.proto

test.proto

// test.proto
package testPackage;
syntax = "proto3";
message SubMsg{
    int32 testSubmsg=1;
};
message TestMessage {
  string test_field = 1;
  int32 i32 = 3;
  int64 i64 = 2;
  string str = 4;
  float f32 = 5;
  SubMsg msg=7;
  uint32 u32x = 6;
}

enum TestEnum{
  Key=1;
  E2=20;
  XX=3;
}

output.proto

// 
// This file is decompiled by depbjs v0.0.1.
// source: ./tests/test.js
// 

package testPackage;

message SubMsg {
    int32 testSubmsg = 1;
};

message TestMessage {
    string testField = 1;
    int32 i32 = 3;
    int64 i64 = 2;
    string str = 4;
    float f32 = 5;
    SubMsg msg = 7;
    uint32 u32x = 6;
};

enum TestEnum {
    Key = 1;
    E2 = 20;
    XX = 3;
};

License

MIT License.

1.0.9

3 years ago

1.0.8

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago