Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 15, 2024 via pnpm

minipass 4.2.5

minimal implementation of a PassThrough stream
Package summary
Share
0
issues
1
license
1
ISC
Package created
14 Mar 2017
Version published
11 Mar 2023
Maintainers
6
Total deps
1
Direct deps
0
License
ISC

Issues

0
This package has no issues

Licenses

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
minipass@4.2.5
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
ⓘ This is a list of minipass 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does minipass do?

Minipass is a lightweight Node.js library that provides a very minimal implementation of a PassThrough stream. It's optimized for performance, handling objects, strings, and buffers quite effectively. The central function of Minipass is to pass data right through – it does not perform any transformation of the data. Minipass supports standard stream operations such as pipe(), buffering data until a data event handler or pipe() is added, and the transmission of backpressure. It also includes an efficient read() method, though it's typically more efficient to consume data from this stream via 'data' events or by calling pipe() into another stream.

How do you use minipass?

To use Minipass, you'll need to incorporate it into your Node.js code after installing the package from npm. Here's a simple code snippet showcasing basic usage.

import { Minipass } from 'minipass';

const mp = new Minipass(); // Creates a new instance of Minipass.
mp.write('foo'); // Write data into the stream.
mp.pipe(someOtherStream); // Pipe that data into another stream.
mp.end('bar'); // Signal that you have no more data to write.

You can also extend the base Minipass class to implement more complex use-cases such as customized write methods, error handling, or data transformation. Minipass provides a variety of other methods, properties, and options for controlling stream behavior, including setting encoding, working in object mode, and controlling data emission.

Where are the minipass docs?

You can find Minipass documentation within the readme file at its GitHub repository, https://github.com/isaacs/minipass. This file provides detailed information on Minipass usage, including TypeScript usage, the differences from Node.js streams, and a comprehensive documentation of the API. This includes methods, options, event types, and even examples of different ways to use and extend the Minipass class.