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

bight

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bight

inject and compose through streams into a pipeline

  • 0.2.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

bight

inject and compose through streams into a pipeline

"In knot tying, a bight is a curved section or slack part between the two ends of a rope, string, or yarn." - Wikipedia

installation

$ npm install bight

usage

var bight = require('bight')

now get some through (duplex) streams:

var split = require('split')
var toUpper = require('toupper')

var superMode = bight(split(), toUpper())

now we can pass this pipeline around an' stuff:

module.exports = function () {
  return bight(split(), toUpper())
}

process.stdin.pipe(superMode).pipe(process.stdout)

bight is a constructor and can be called with or without new. Give it either an array of streams

bight([stream1, stream2])

or multiple stream arguments

bight(stream1, stream2)

contributors

jden jason@denizac.org

license

MIT. (c) 2013 Agile Diagnosis, Inc. See LICENSE.md

Keywords

FAQs

Package last updated on 18 Feb 2013

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