
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
Thin wrapper for graceful-fs file read stream.
$ npm install flow-read
To create a readStream factory,
var readStream = require( 'flow-read' ),
rStream = readStream();
This method is a setter/getter. If no filepath is provided, returns the filepath. You configure the stream factory by specifying a filepath:
rStream.path( 'path/to/file' );
Provided a filepath has been specified, to create a new readStream:
var stream = rStream.stream( clbk );
Where the optional clbk is invoked upon stream end and has an error as its first argument. If no read errors, error is null.
Methods are chainable:
readStream()
.path( 'path/to/file' )
.stream( clbk )
.pipe( process.stdout );
// File read stream generator:
var readStream = require( 'flow-read' );
// Create a new stream, passing along an optional error handler:
var stream = readStream()
.path( __dirname + '/path/to/file.json' )
.stream( onError );
// Pipe the stream:
stream.pipe( process.stdout );
// Error handler:
function onError( error ) {
if ( error ) {
console.error( error.stack );
throw new Error( 'Error!!!' );
}
console.log( 'Finished!' );
}
Unit tests use the Mocha test framework with Chai assertions.
Assuming you have installed Mocha, execute the following command in the top-level application directory to run the tests:
$ mocha
All new feature development should have corresponding unit tests to validate correct functionality.
Copyright © 2014. Athan Reines.
FAQs
Thin wrapper for graceful-fs file read stream.
The npm package flow-read receives a total of 5 weekly downloads. As such, flow-read popularity was classified as not popular.
We found that flow-read 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.