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 Apr 11, 2024 via pnpm

buffer 5.7.1

Node.js Buffer API, for the browser
Package summary
Share
0
issues
2
licenses
2
MIT
1
BSD-3-Clause
Package created
7 Feb 2014
Version published
4 Nov 2020
Maintainers
1
Total deps
3
Direct deps
2
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
2 Packages, Including:
base64-js@1.5.1
buffer@5.7.1

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
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

2
All Dependencies CSV
β“˜ This is a list of buffer 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
base64-js1.5.14.01 kBMIT
prod
ieee7541.2.12.82 kBBSD-3-Clause
prod

Visualizations

Frequently Asked Questions

What does buffer do?

The Buffer package replicates the Node.js Buffer API for use in the browser. It is designed for the manipulation of binary data with a wide range of features supporting different functionalities. The main goal of Buffer is to provide an API that is 100% identical to Node's Buffer API. This lets you manipulate binary data quickly and easily across virtually all popular web browsers. Buffer is backed by Typed Arrays and sports an impressively lean bundle size, making it ideal for light, speedy operations.

How do you use buffer?

To use Buffer, you'll first have to install it through npm by running npm install buffer. Once it's installed, you can use it directly in your project by executing require('buffer') or using the Buffer global. This module is mostly used with Browserify, which should automatically include it in your bundle.

If you want to depend on this module explicitly without using Browserify, you use require('buffer/') to employ the npm module named 'buffer' instead of the Node.js core module named 'buffer'. Here's a brief snippet of how you might use Buffer:

var Buffer = require('buffer/').Buffer  // note: the trailing slash is important!

Throughout the usage, you can reference the Node.js Buffer API as Buffer strives to mimic its functionality as closely as possible.

Where are the buffer docs?

The official Buffer documentation, which contains a full list of properties, instance methods, and class methods that are supported, is available on the Node.js website. This is the most comprehensive guide to Buffer's functionality and should answer any questions you might have about how Buffers operates or what you might expect from it. You can also find information on how Buffer works and the benefits of using Buffer in the readme of the official Buffer GitHub page.