pro
protogen
npm i protogen
pro

protogen

CLI tool to parse protobuf .proto to C#, based on protobuf-net, works on Windows/Mac/Linux

by Raymond Xie

0.2.1 (see all)License:MITTypeScript:Not Found
npm i protogen
Readme

ProtoGen

CLI tool to parse protobuf .proto file to C#, based on protobuf-net, also works on Windows/Mac/Linux.

Purpose

Install

[sudo] npm install -g protogen

Dependency

It comes with protogen.exe, written in C#, and built with Mono.

It works on Windows, and also works on Mac/Linux, if installed following dependencies:

sudo port install protobuf-cpp

Or, with homebrew:

brew install protobuf

How To Use

Same as protogen.exe on Windows.

protogen -i:{infile2} [-i:{infile2}] [-o:{outfile}] [-t:{template}] [-p:{prop}[=value]] [-q] [-d]

Examples:

protogen -i:input.proto -o:output.cs
protogen -i:input.proto -o:output.xml -t:xml
protogen -i:input.proto -o:output.cs -p:datacontract -q
protogen -i:input.proto -o:output.cs -p:observable=true

How It Works

On windows, it just call the protogen.exe.

On Mac/Linux, it use mono to load protogen.exe.

Credits

A small tool created by Raymond Xie, any comments are welcome.

Downloads/wk

3

GitHub Stars

58

LAST COMMIT

7yrs ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

2

OPEN PRs

0
VersionTagPublished
0.2.1
latest
7yrs ago
No alternatives found
No tutorials found
Add a tutorial