</>PackageGraphPackageGraph

array-buffer-byte-length

npmv1.0.2TypeScript

Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.

Adopt with care

array-buffer-byte-length is usable, with caveats. Last published 629 days ago.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • CMaintenance: grade C, Fair — worth a look.

    Last published 629 days ago.

  • BWeight: grade B, Good.

    Pulls in 13 transitive packages, about 190 KB installed (at least — some of the tree is still being crawled).

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding array-buffer-byte-length to a project.

2
Direct dependencies

Runtime packages this one declares itself.

13
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

190 KB
Install size

Unpacked size of this package plus its entire runtime tree.

3
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Licenses in the dependency tree

MIT

Every license you inherit by installing array-buffer-byte-length, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >= 0.4
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the array-buffer-byte-length README.

const assert = require('assert');
const byteLength = require('array-buffer-byte-length');

assert.equal(byteLength([]), NaN, 'an array is not an ArrayBuffer, yields NaN');

assert.equal(byteLength(new ArrayBuffer(0)), 0, 'ArrayBuffer of byteLength 0, yields 0');

array-buffer-byte-length vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
array-buffer-byte-lengththis page01MIT1 year ago
object-is21.5M1MIT1 day ago
regexp.prototype.flags01MIT1 day ago
path-parse01MIT1 day ago
setprototypeof92M1ISC1 day ago
css.escape48.7M2MIT1 day ago

Dependencies

Declared by array-buffer-byte-length v1.0.2. Runtime dependencies are installed with the package; dev dependencies are not.

Runtime (2)

call-bound ^1.0.3is-array-buffer ^3.0.5

Dev (20)

@arethetypeswrong/cli ^0.17.1@ljharb/eslint-config ^21.1.1@ljharb/tsconfig ^0.2.2@types/es-value-fixtures ^1.4.4@types/for-each ^0.3.3@types/object-inspect ^1.13.0@types/tape ^5.8.0auto-changelog ^2.5.0encoding ^0.1.13es-value-fixtures ^1.5.0eslint =8.8.0evalmd ^0.0.19for-each ^0.3.3in-publish ^2.0.1npmignore ^0.3.1nyc ^10.3.2object-inspect ^1.13.3safe-publish-latest ^2.0.0tape ^5.9.0typescript next

Used by

Popular packages that depend on array-buffer-byte-length.

Relationship graph

Dependencies (left) and dependents (right) of array-buffer-byte-length.

call-bounddeep-equalarray-buffer-byte…
array-buffer-byte-length dependencies dependents

Frequently installed together

Release history

1 release in the last two years, typically about 340 days apart.

Recent versions of array-buffer-byte-length
VersionPublishedSizeLicense
1.0.2latest1 year ago12 KBMIT
1.0.12 years ago13 KBMIT
1.0.03 years ago7.9 KBMIT

Overview

array-buffer-byte-length is an npm package that get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method. It has 1 known dependents in the graph. The latest version is 1.0.2, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method and value a focused solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (22 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use array-buffer-byte-length?

array-buffer-byte-length is usable, with caveats. Last published 629 days ago.

How do I install array-buffer-byte-length?

Run `npm install array-buffer-byte-length` to add array-buffer-byte-length to your npm project.

How many dependencies does array-buffer-byte-length have?

array-buffer-byte-length declares 22 direct dependencies and pulls in 13 packages in total once its runtime tree is resolved totalling about 190 KB on disk.

What license is array-buffer-byte-length released under?

array-buffer-byte-length is distributed under the MIT license.

How popular is array-buffer-byte-length?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on array-buffer-byte-length.

Is array-buffer-byte-length still maintained?

The most recent release of array-buffer-byte-length (v1.0.2) was published 1 year ago.

Does array-buffer-byte-length run install scripts?

No. array-buffer-byte-length does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.