Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@mattiasbuelens/web-streams-polyfill
Advanced tools
Web Streams, based on the WHATWG spec reference implementation
Web Streams, based on the WHATWG spec reference implementation.
This project comes in three variants:
@mattiasbuelens/web-streams-polyfill
: a polyfill that replaces the native stream implementations.
Recommended for use in web apps through a <script>
tag.@mattiasbuelens/web-streams-polyfill/ponyfill
: a ponyfill that provides
the stream implementations without replacing any globals.
Recommended for use in Node applications or web libraries.@mattiasbuelens/web-streams-polyfill/ponyfill/es6
: a ponyfill targeting ES2015+ environments.
Recommended for use in modern Node applications, or in web apps targeting modern browsers.Each variant also includes the type definitions for WHATWG streams from DefinitelyTyped.
Usage as a polyfill:
<script src="/path/to/web-streams-polyfill/dist/polyfill.min.js"></script>
<script>
var readable = new ReadableStream();
</script>
Usage as a Node library:
var streams = require("@mattiasbuelens/web-streams-polyfill/ponyfill");
var readable = new streams.ReadableStream();
Usage as a ES2015 module:
import { ReadableStream } from "@mattiasbuelens/web-streams-polyfill/ponyfill";
const readable = new ReadableStream();
The polyfill
and ponyfill
variants work in any ES5-compatible environment that has a global Promise
.
If you need to support older browsers or Node versions that do not have a native Promise
implementation
(check the support table), you must first include a Promise
polyfill
(e.g. promise-polyfill).
The ponyfill/es6
variant works in any ES2015-compatible environment.
Thanks to these people for their work on the original polyfill:
FAQs
Web Streams, based on the WHATWG spec reference implementation
We found that @mattiasbuelens/web-streams-polyfill 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.