Socket
Socket
Sign inDemoInstall

protobuf-decode

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protobuf-decode

extremely light-weight protobuf decode module, no larger than 5kB


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Protobuf-decode

Javascript version protobuf decoder. Aim: light-weight, file size no larger than 5kB. Just decode simple structs.

Demo

It's written in es6 style code, so you need to npm install babel-node. To test, you can run:

babel-node --presets es2015 test.js

Usage

We don't use .proto file since it's only used with simple structs, you can mimic the msg_struct.js to define your message structure.

Then import 'protobuf-decode' and use its decode() method!

Keywords

FAQs

Package last updated on 14 Jul 2016

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