Front-end for protoc code generator plugins written in Node.js
This is a Node.js port of plugin.h. It's intended to have the same API, within reason.
require('protoc-plugin')(generator);Where generator is an object with the following methods:
files is an array of FileDescriptor. A parameter is given
as passed on the command line. context is a
GeneratorResponseContext. Should return true on success.
Should return a bitwise OR of features from the Features enum in plugin.proto.
Consider extending CodeGenerator for easier access.
- Proper documentation
- Missing API