Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
array-buffer-byte-length
Advanced tools
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
Get the byte length of an ArrayBuffer, even in engines without a .byteLength
method.
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');
Simply clone the repo, npm install
, and run npm test
v1.0.2 - 2024-12-19
b15321c
fa1eb7d
@ljharb/eslint-config
, @ljharb/tsconfig
, @types/object-inspect
, @types/tape
, auto-changelog
, es-value-fixtures
, object-inspect
, tape
53e3f93
aud
with npm audit
2d1b66f
call-bound
directly 433be34
call-bind
, is-array-buffer
4ff7467
tape
, typescript
42c9f19
29a72f1
call-bind
1e9e902
b509518
31962b6
FAQs
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
The npm package array-buffer-byte-length receives a total of 28,307,890 weekly downloads. As such, array-buffer-byte-length popularity was classified as popular.
We found that array-buffer-byte-length demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.