
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
stream.pipeline-shim
Advanced tools
Polyfill for stream.pipeline in node versions < v10
node v10.0.0 added support for a built-in stream.pipeline
:
https://github.com/nodejs/node/pull/19828
This package provides the built-in stream.pipeline
in node v10.0.0 and later,
and a replacement in other environments.
This module requires Node >= 5.
This package implements the es-shim API interface. It works in an ES5-supported environment and complies with the spec.
npm install stream.pipeline-shim
Additionally for Typescript:
npm install -D @types/node
const pipeline = require('stream.pipeline-shim');
// Use `pipeline` just like the built-in method on `stream`
Typescript:
import pipeline from 'stream.pipeline-shim';
// Use `pipeline` just like the built-in method on `stream`
require('stream.pipeline-shim/shim')();
// `stream.pipeline` is now defined
const stream = require('stream');
// Use `stream.pipeline`
or:
require('stream.pipeline-shim/auto');
// `stream.pipeline` is now defined
const stream = require('stream');
// Use `stream.pipeline`
Typescript:
import finishedShim from 'stream.pipeline-shim/shim';
finishedShim();
// `stream.pipeline` is now defined
import stream from 'stream';
// Use `stream.pipeline`
or:
import 'stream.pipeline-shim/auto';
// `stream.pipeline` is now defined
import stream from 'stream';
// Use `stream.pipeline`
Copyright (c) 2018-2019 Piotr Roszatycki piotr.roszatycki@gmail.com
Copyright Node.js contributors. All rights reserved.
Copyright (c) 2014 Mathias Buus
v1.1.0 2019-05-08
FAQs
Polyfill/shim for stream.pipeline in node versions < v10
The npm package stream.pipeline-shim receives a total of 17,966 weekly downloads. As such, stream.pipeline-shim popularity was classified as popular.
We found that stream.pipeline-shim 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.