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 May 9, 2024 via pnpm

fs-minipass 2.1.0

fs read and write streams based on minipass
Package summary
Share
0
issues
1
license
3
ISC
Package created
11 Sep 2017
Version published
21 Jan 2020
Maintainers
5
Total deps
3
Direct deps
1
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
3 Packages, Including:
fs-minipass@2.1.0
minipass@3.3.6
yallist@4.0.0
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

1
All Dependencies CSV
β“˜ This is a list of fs-minipass 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
minipass3.3.614.98 kBISC
prod

Visualizations

Frequently Asked Questions

What does fs-minipass do?

Fs-minipass is a package that provides file system streams based on minipass. It exports four classes namely ReadStream, ReadStreamSync, WriteStream, and WriteStreamSync. For synchronous streams like ReadStreamSync and WriteStreamSync, all of the data is available immediately upon consuming the stream. For ReadStreamSync, nothing is stored in memory when the stream is constructed, it reads the entire file and returns the contents. While WriteStreamSync flushes every write to the file synchronously. The asynchronous versions introduce significantly less Stream machinery overhead, working much like their node built-in counterparts.

How do you use fs-minipass?

The usage of fs-minipass is relatively simple, it works like streams where you can pipe them, read() them, or write() to them. Here is an example of how to use it in your JavaScript code:

const fsm = require('fs-minipass')
const readStream = new fsm.ReadStream('file.txt')
const writeStream = new fsm.WriteStream('output.txt')
writeStream.write('some file header or whatever\n')
readStream.pipe(writeStream)

In this example, we require the fs-minipass module, create a new ReadStream for the targeted file ('file.txt'), and a new WriteStream for the output file ('output.txt'). Then, write some data into the writeStream using the write method, and pipe the readStream into the writeStream using the pipe() method.

Where are the fs-minipass docs?

The complete documentation for fs-minipass can be found in its package readme content or at its official repository: git+https://github.com/npm/fs-minipass.git. The documentation includes the description of all four classes exported, as well as a detailed explanation of all the options available in both ReadStream and WriteStream, complete with instructions on how to use them in your code.