
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
blob2web-stream
Advanced tools
Read W3C Blob & File objects as a Web stream.
Load it however you want
require('blob2web-stream')
import from 'blob2web-stream'
<script src="https://wzrd.in/standalone/blob2web-stream@1.0.0"></script>
<script src="https://cdn.rawgit.com/jimmywarting/blob2web-stream/master/blob2web-stream"></script>
<script src="https://wzrd.in/standalone/blob2web-stream@1.0.0"></script>
<script src="https://wzrd.in/standalone/web-streams-polyfill@1.1.1"
integrity="sha384-8EYry4yokV53rGHMFtPqeVlAPgxn8yxr/RvxC4bZt3vlneaDPzWkSJCvBDBTuXAV"
crossorigin
></script>
<script>
var myFile = new File(['parts'], 'filename.txt')
var stream = myFile._createReadableByteStream()
// You can do this
stream.pipeTo(destination)
// or this
stream
.pipeThrough(decompressorTransform)
.pipeThrough(ignoreNonImageFilesTransform)
.pipeTo(mediaGallery);
// Or more manual work...
// Web streams need a consumer to read the data unlike node-streams where
// you get data from a data-event. Web streams it's also all promisifed.
var reader = readableStream.getReader()
var chunks = []
var pump() =>
reader.read().then( ({ value, done }) => {
if (done)
return chunks
chunks.push(value) // Uint8array
return pump()
})
pump().then(chunks => {
console.log('done reading the hole file')
console.log(chunks)
})
</script>
FAQs
This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.
We found that blob2web-stream demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.