protobuf-extractor
v1.0.0
Published
Extracts protobuf definitions from a javascript file
Downloads
3
Readme
Protobuf extractor
This package will help extract protobuf.js definitions from a given file or from a webpage.
Usage
yarn add protobuf-extractorimport { parseJsFile } from "protobuf-extractor";
const jsContents = fs.readFileSync(path.join(__dirname, "./file.js")).toString();
const definitions = await parseJsFile(jsContents);