An open API service indexing awesome lists of open source software.

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

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);
```