372 packages found
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
A Minipass stream that raises an error if you get a different number of bytes than expected
For a given Buffer or Stream, this module will attempt to determine the total length of the stream contents. It currently supports Buffers, `fs` streams, `http` responses, and `request` objects, and allows for specifying custom stream types.
Calculate the length for an SVG path, to use it with node or a Canvas element
A regex to match any full character, considering weird character ranges.
A JavaScript utility for creating variadic functions
Maximum unsigned 32-bit integer.
Regular expression to detect an extended-length path.
Get the longest item in an array.
Pipe data through a stream until some fixed length is reached, then callback.
Use the ic length unit
digest-stream - Simple pass-through stream (RW) which calculates the a crypto digest (sha/md5 hash) of a stream and also the length. Pipe your stream through this to get digest and length. (streams2)
Get the duration of an MP3 file
Zeropad your positive integers.
Music metadata parser for Node.js, supporting virtual any audio and tag format.
Pipe data through a stream until some fixed length is reached, then callback.
Robustly get the length of a Typed Array
- typed
- array
- length
- robust
- es
- Int8Array
- Uint8Array
- Uint8ClampedArray
- Int16Array
- Uint16Array
- Int32Array
- Uint32Array
- Float32Array
- Float64Array
Maximum length for a typed array.
Length units synonyms