1.0.0 • Published 2 years ago

protobuf-extractor v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Protobuf extractor

This package will help extract protobuf.js definitions from a given file or from a webpage.

Usage

yarn add protobuf-extractor
import { parseJsFile } from "protobuf-extractor";

const jsContents = fs.readFileSync(path.join(__dirname, "./file.js")).toString();
const definitions = await parseJsFile(jsContents);