Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

etp-avro

Package Overview
Dependencies
Maintainers
1
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

etp-avro

Avro binary serializer for Energstics Transport Protocol (ETP)

  • 0.2.1-0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
61
increased by60.53%
Maintainers
1
Weekly downloads
 
Created
Source

#etp-avro

This is an Apache Avro serialization library for the Energistics Transfer protocol (ETP).

ETP is a proposed specification for streaming real-time data from oil field drilling and production facilities. It uses websockets for transport and Apache Avro for serialization. This node package contains:

  1. A set of routines for serializing and deserialing binary Avro messages in javascript.

#Prerequisites

  • Install Node from nodejs.org - v0.10 min required.

#Installation

To install from npm

npm install etp-avro

#Using the library.

Create test.js

var avro = require("etp-avro");
var schemaCache = new avro.SchemaCache( [] );
var reader = new avro.BinaryReader(schemaCache);

var msg = reader.decode("string", [22, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x57, 0x6f, 0x72, 0x6c, 0x64]);

console.log(msg);

Run it in node

$node ./test.js
Hello World

$

FAQs

Package last updated on 01 Jun 2017

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