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

socket.io-stream

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socket.io-stream - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

5

package.json
{
"name": "socket.io-stream",
"version": "0.5.2",
"version": "0.5.3",
"description": "stream for socket.io",

@@ -24,4 +24,3 @@ "author": "Naoyuki Kanezawa <naoyuki.kanezawa@gmail.com>",

"scripts": {
"test": "make test-all",
"prepublish": "make test-all build"
"test": "make test-all"
},

@@ -28,0 +27,0 @@ "dependencies": {

@@ -78,2 +78,18 @@ # Socket.IO stream

#### Upload progress
You can track upload progress like the following:
```js
var blobStream = ss.createBlobReadStream(file);
var size = 0;
blobStream.on('data', function(chunk) {
size += chunk.length;
console.log(Math.floor(size / file.size * 100) + '%');
// e.g. '42%'
});
blobStream.pipe(stream);
```
## Documentation

@@ -80,0 +96,0 @@

socket.io-stream.js

Sorry, the diff of this file is too big to display

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