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

byte-data-stream

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

byte-data-stream - npm Package Compare versions

Comparing version 1.0.0-rokka0 to 1.1.0

2

package.json
{
"name": "byte-data-stream",
"version": "1.0.0-rokka0",
"version": "1.1.0",
"description": "Readable & writable byte data stream",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -43,2 +43,4 @@ # byte-data-stream

stream.buffer; // ArrayBuffer
stream.length; // length of stream.buffer
stream.isDataAvailable; // stream.i < stream.length

@@ -45,0 +47,0 @@ // methods for reading data

@@ -19,2 +19,10 @@ const varint = require('signed-varint');

get length(){
return a.buffer.byteLength;
}
get isDataAvailable(){
return a.i < a.buffer.byteLength;
}
readInt8(){

@@ -21,0 +29,0 @@ return this.view.getInt8(this.i++);

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