a tool for parsing *.proto
files and turning them into an AST.
var parse = require('protobuf-parser')
, fs = require('fs')
fs.createReadStream('example.proto')
.pipe(parse())
.on('data', function(node) {
console.log('node was emitted:', node.type)
})
// or:
var root = parse.sync(fs.readFileSync('example.proto', 'utf8'))
MIT