https://github.com/jonluca/protobuf-extractor
Extract protobuf files from a website
https://github.com/jonluca/protobuf-extractor
Last synced: about 1 year ago
JSON representation
Extract protobuf files from a website
- Host: GitHub
- URL: https://github.com/jonluca/protobuf-extractor
- Owner: jonluca
- Created: 2022-11-01T16:33:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-09T20:33:49.000Z (over 3 years ago)
- Last Synced: 2025-03-10T13:49:46.103Z (over 1 year ago)
- Language: JavaScript
- Size: 992 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Protobuf extractor
This package will help extract protobuf.js definitions from a given file or from a webpage.
## Usage
```bash
yarn add protobuf-extractor
```
```js
import { parseJsFile } from "protobuf-extractor";
const jsContents = fs.readFileSync(path.join(__dirname, "./file.js")).toString();
const definitions = await parseJsFile(jsContents);
```