Showing 1-20 of 399,973 packages
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
String length in Bytes
PostCSS plugin to replace output file names with HASH algorithms (md5, sha256, sha512, etc) and string length of your choice - for cache busting
Get string length s.t. correcting astral codes and skipping ansi codes
A performant zero-dependency utility to clean UTF-8 text, fix mojibake from latin1, verify string length, and sanitize input
Get string length s.t. correcting astral codes and skipping ansi codes
Generate a cryptographically strong random string
A regex to match any full character, considering weird character ranges.
nv-json-length ======================= - get json's string-length AND buffer-size without stringify-it - its simple, just using a fixed length-lookup-array to increase the speed - slightly faster IF size < 1M; 30%~50% faster IF size >8M
Sort objecy keys by length
Set a function's length property
Get utf8 byte length of string
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
A minimal base64 implementation for number arrays.
Robustly get the length of a Typed Array
A minimal UTF8 implementation for number arrays.
Get the byteLength out of a DataView, robustly.
Generate a unique random string
A little helper for handling strings containing zero width control characters, ANSI styling, whitespaces, newlines, 💩, etc.
Port of C's wcwidth() and wcswidth()