Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

through3

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

through3

Extend stream classes.

  • 1.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3K
decreased by-19.51%
Maintainers
2
Weekly downloads
 
Created
Source

Table of Contents

  • Through

Through

Build Status npm version Coverage Status.

Stream extends library tracking latest stable node with no external dependencies.

Requires node (>=0.11).

Install

npm i through3 --save

API

through3

Utilities for creating stream subclass functions.

extend
extend(type, ctor[, opts])

Creates a stream subclass.

Returns a stream subclass.

  • type Function The super class.
  • ctor Function Constructor for the subclass.
  • opts Object Default constructor options.
transform
transform(fn[, flush][, opts])

Creates a transform stream subclass.

Returns transform stream subclass.

  • fn Function The transform function.
  • flush Function A flush function.
  • opts Object Default constructor options.
cork
cork()

Creates a pass through stream subclass that calls cork to buffer all input and write on end.

Useful when you need all the data before operations can begin.

Returns stream class that buffers the input.

passthrough
passthrough(opts)

Get a pass through stream class.

Returns a stream that passes through data.

  • opts Object Stream construct options.

Developer

Test

Tests are not included in the package, clone the repository:

npm test

Cover

To generate code coverage run:

npm run cover

Documentation

To generate all documentation:

npm run docs

Readme

To build the readme file from the partial definitions (requires mdp):

npm run readme

License

Everything is MIT. Read the license if you feel inclined.

Generated by mdp(1).

Keywords

FAQs

Package last updated on 24 Mar 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc