New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

readable-error

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

readable-error

Readable stream which emits an error

1.0.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

readable-error

A readable stream which emits an error. The error given to the constructor will be emitted after the first read attempt.

Usage

Just give the error to the constructor:

const ReadableError = require('readable-error')

const stream = new ReadableError(new Error('test'))

stream.on('error', (err) => {
  console.log(err.message)
})

stream.resume()

Keywords

readable

FAQs

Package last updated on 18 Oct 2017

Did you know?

Socket

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.

Install

Related posts