array-buffer-byte-length
npmv1.0.2TypeScriptGet the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
Overview
array-buffer-byte-length is an npm package that get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method. 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.
Relationship graph
Dependencies (left) and dependents (right) of array-buffer-byte-length.
Dependencies
Runtime (2)
Dev (20)
Used by
Popular packages that depend on array-buffer-byte-length.
Alternatives to array-buffer-byte-length
ES6 spec-compliant RegExp.prototype.flags shim.
ES2015-compliant shim for Object.is - differentiates between -0 and +0
Node.js path.parse() ponyfill
A small polyfill for Object.setprototypeof
Utility to parse a string bytes to bytes and vice-versa
An implementation of WHATWG AbortController interface.
Polyfills for React Native.
Strip UTF-8 byte order mark (BOM) from a string
Implementation of Function.prototype.bind
An implementation of WHATWG EventTarget interface.
Set a function's length property
IEEE 754 half-precision floating-point for JavaScript
Frequently installed together
The semantic version parser used by npm.
Store information about any JS value in a side channel. Uses WeakMap if available.
Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag
Get an iterator for any JS language value. Works robustly across all environments, all versions.
Which kind of boxed JS primitive is this?
Robustly `.call.bind()` a function
Array#isArray for older browsers
ES2015-compliant shim for Object.is - differentiates between -0 and +0
Is this an arguments object? It's a harder question than you think.
Is this value a JS SharedArrayBuffer?
An AST-based pattern checker for JavaScript.
Get and robustly cache all JS language-level intrinsics at first require time
Version history
| Version | Published | License |
|---|---|---|
| 1.0.2latest | 1 year ago | MIT |
| 1.0.1 | 2 years ago | MIT |
| 1.0.0 | 3 years ago | MIT |
Maintainers
Funding
Frequently asked questions
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.
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?
array-buffer-byte-length has approximately 0 downloads per week and 1 known dependent packages.