🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

protocol-buffers-schema

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protocol-buffers-schema

No nonsense protocol buffers schema parser written in Javascript

3.6.0
latest
Source
npm
Version published
Weekly downloads
2.2M
-15.2%
Maintainers
1
Weekly downloads
 
Created

What is protocol-buffers-schema?

The protocol-buffers-schema npm package is a tool for parsing .proto files, which define Protocol Buffers schemas. Protocol Buffers is a method of serializing structured data, and this package allows you to parse the schema definitions into a usable JSON format programmatically in JavaScript.

What are protocol-buffers-schema's main functionalities?

Parsing .proto files

This feature allows you to parse .proto files to get a JSON representation of the Protocol Buffers schema. The code sample demonstrates how to read a .proto file from the filesystem and parse it using the package.

const fs = require('fs');
const Schema = require('protocol-buffers-schema');

const schema = Schema.parse(fs.readFileSync('example.proto'));
console.log(JSON.stringify(schema, null, 2));

Other packages similar to protocol-buffers-schema

Keywords

protobuf

FAQs

Package last updated on 09 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts