1.0.3 • Published 1 year ago

proto-ast-compile v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

proto-ast-compile

Compiles the ProtoDocument AST back into a proto doc.

Usage

const {compile, unsafeCompile} = require("proto-ast-compile");
//unsafeCompile does not check for validity
const parser = require("proto-parser");

const protoDocument = parser.parse(protoString);

//...do some edits on protoDocument

const compiledProtoString = compile(protoDocument);

fs.writeFileSync("my-file.proto", compiledProtoString);

Currently only supports proto3 syntax

Known Restrictions

  1. No public imports - currently missing from proto-parser
  2. No reserved enums - currently missing from proto-parser
1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago