pb-parser is a lightweight protobuf parser written in TypeScript, version 0.1.6. It provides a simple API to parse protocol buffer definitions (proto files) into an AST. This package is maintained on an as-needed basis with no fixed release cadence. Compared to alternatives like protobufjs, pb-parser focuses solely on parsing without code generation or serialization, making it a smaller dependency for projects that only need to analyze proto syntax.
npm install pb-parserNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses a protobuf definition string and accesses the syntax version using the exported enum.
Validate the AST manually or use a more comprehensive tool like protobufjs for full validation.
Use alternative parser if you need full proto3 support.
Combine multiple files manually before parsing or use a multi-file parser.
Add semicolon: syntax = "proto3";
Use: import { parse } from 'pb-parser'Ensure you have installed the package (npm install pb-parser) and set "esModuleInterop": true in tsconfig.json if needed.
No dependency data recorded yet.