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 Feb 28, 2024 via pnpm

bl 4.1.0

Buffer List: collect buffers and access with a standard readable Buffer interface, streamable too!
Package summary
Share
0
issues
3
licenses
7
MIT
1
BSD-3-Clause
1
ISC
Package created
15 Jun 2013
Version published
9 Feb 2021
Maintainers
2
Total deps
9
Direct deps
3
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
7 Packages, Including:
base64-js@1.5.1
bl@4.1.0
buffer@5.7.1
readable-stream@3.6.2
safe-buffer@5.2.1
string_decoder@1.3.0
util-deprecate@1.0.2

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
ieee754@1.2.1

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
1 Packages, Including:
inherits@2.0.4
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

3
All Dependencies CSV
β“˜ This is a list of bl 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
buffer5.7.120.74 kBMIT
prod
inherits2.0.41.98 kBISC
prod
readable-stream3.6.232.46 kBMIT
prod

Visualizations

Frequently Asked Questions

What does bl do?

Buffer List (bl) is a Node.js storage object mainly designed for managing collections of Node Buffers. The package exposes these buffers with the primary Buffer readable API. Providing versatile functionality, bl can also work as a duplex stream, effectively managing the collection and emission of buffers to and from a stream that produces and consumes them, respectively. Its efficient memory management system ensures the original buffers remain intact, performing copy operations only when needed.

How do you use bl?

The usage of Buffer List (bl) is straightforward and follows the standard programming practices for JavaScript and Node.js applications.

First, you will have to install the package using npm:

npm install bl

And then, you can include bl in your code:

const { BufferList } = require('bl')

const bl = new BufferList()
bl.append(Buffer.from('abcd'))
bl.append(Buffer.from('efg'))
bl.append('hi') // bl also accepts & converts Strings
bl.append(Buffer.from('j'))
bl.append(Buffer.from([ 0x3, 0x4 ]))

console.log(bl.length) // 12

// Using the different available methods
console.log(bl.slice(0, 10).toString('ascii')) // 'abcdefghij'
console.log(bl.indexOf('def')) // 3

You can also use it like concat-stream:

const { BufferListStream } = require('bl')
const fs = require('fs')

fs.createReadStream('README.md')
  .pipe(BufferListStream((err, data) => {
    console.log(data.toString())
  }))

Where are the bl docs?

The documentation for the bl (Buffer List) npm package can be found here. The README file in the GitHub repository provides comprehensive information regarding the API and usage examples, ensuring developers can effectively incorporate bl into their projects. The code examples provided include different use cases featuring most of the API methods, enabling new users to understand the general functionality and power of bl quickly.