A utility package for JavaScript applications.
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
Robustly get the byte length of a Typed Array
Get the byteLength out of a DataView, robustly.
Robustly get the byte offset of a Typed Array
Get the byteOffset out of a DataView, robustly.
function try-catch wrapper for promises
Get utf8 byte length of string
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.
Create a promise that can be canceled
Allow parsing of optional catch bindings
Platform byte order.
Strip UTF-8 byte order mark (BOM) from a string
Compile optional catch bindings
Windows legacy GUID parser
Sniff the encoding from a HTML byte stream
See our api docs https://serialport.io/docs/api-parser-byte-length
Node addon for string extraction for msgpackr
See our api docs https://serialport.io/docs/api-parser-inter-byte-timeout
LEB128 utilities for Node
Bytes utility functions for ethers.
Count bytes passing through a stream
Get the real byte length of a string.