
Research
Node.js Fixes AsyncLocalStorage Crash Bug That Could Take Down Production Servers
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.
convert-endianness
Advanced tools
Easily convert Little/Big endian typed arrays to the host endianness
Easily convert Little/Big endian typed arrays to the host endianness or back.
npm install convert-endianness
The endianness of typed arrays is host specific. This might be an issue if you want to send them over the wire or persist them to disk. This module makes it easily to guarantee an endianness.
const endianness = require('convert-endianness')
const arr = new Int32Array(2)
arr[0] = 10
arr[1] = 1000000
console.log('as host:', arr)
// ensures the endianness of arr is big endian
endianness.hostToBE(arr)
// if your machine is LE (prob is) then array has changed
console.log('as BE:', arr)
// convert it back to the host endianness
endianness.BEToHost(arr)
console.log('as host again:', arr)
endianness.hostToLE(typedArray)Converts the endianness of the typed array to little endian. If your machine is little endian, this is a noop.
endianness.LEToHost(typedArray)Converts the endianness of the typed array from little endian to your host endian. If your machine is little endian, this is a noop.
endianness.hostToBE(typedArray)Converts the endianness of the typed array to big endian. If your machine is big endian, this is a noop.
endianness.BEToHost(typedArray)Converts the endianness of the typed array from big endian to your host endian. If your machine is big endian, this is a noop.
endianness.LETrue if your machine is little endian.
endianness.BETrue if your machine is big endian.
MIT
FAQs
Easily convert Little/Big endian typed arrays to the host endianness
We found that convert-endianness demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.