Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Weekly downloads
1.6M
increased by0.95%
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc