A utility package for JavaScript applications.
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
Get the byteLength out of a DataView, robustly.
Robustly get the byte offset of a Typed Array
Robustly get the byte length of a Typed Array
Get the byteOffset out of a DataView, robustly.
Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.
Reads / writes floats / doubles from / to buffers in both modern and ancient browsers.
Get utf8 byte length of string
Crockford base-32 checksum encoding
Unicode aware string truncation that given a max byte size will truncate the string to or just below that size
Give me a string and I'll tell you if it's a valid npm package name
Give me a string and I'll tell you if it's a valid npm package license string
Get the real byte length of a string.
Platform byte order.
Validates if a value is a function.
Strip UTF-8 byte order mark (BOM) from a string
Windows legacy GUID parser
Pattern-matching on byte buffers
Analyze the exported API for a TypeScript library and generate reviews, documentation, and .d.ts rollups
A ridiculously light-weight argument validator (now browser friendly)
See our api docs https://serialport.io/docs/api-parser-byte-length
See our api docs https://serialport.io/docs/api-parser-inter-byte-timeout
Check if a buffer contains valid UTF-8