Functionality to streamline the process of scripting for the console with javascript
Strip UTF-8 byte order mark (BOM) from a string
Get the byteOffset out of a DataView, robustly.
Get the byteLength out of a DataView, robustly.
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
Robustly get the byte length of a Typed Array
Robustly get the byte offset of a Typed Array
Get utf8 byte length of string
Sniff the encoding from a HTML byte stream
Base64 encoding/decoding in pure JS
Platform byte order.
Reads / writes floats / doubles from / to buffers in both modern and ancient browsers.
Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.
Bytes utility functions for ethers.
Node addon for string extraction for msgpackr
Get the real byte length of a string.
Unicode aware string truncation that given a max byte size will truncate the string to or just below that size
LEB128 utilities for Node
Conversion of JavaScript primitives to and from Buffer with binary order matching natural primitive order
Pure-JS ADLER-32
Like `string.slice()` but bytewise
Pattern-matching on byte buffers
Count bytes passing through a stream
Windows legacy GUID parser