Search results
1013 packages found
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
The random-string-generator-library is a lightweight utility library for generating random strings in Node.js or browser environments. It provides a simple function for creating strings with a specified length, using a customizable character set.
Get the UTF-8 byte length of a string
- binary
- bytes
- emoji
- encoding
- javascript
- json
- length
- library
- nodejs
- parsing
- serialization
- size
- string
- string-manipulation
- View more
Creates random alphanumeric hash strings with given length
Crop array of ranges when they go beyond the reference string's length
Guess the indentation of a JSON string
- algorithm
- detection
- heuristic-algorithm
- heuristics
- indent
- indentation
- javascript
- json
- length
- library
- newline
- nodejs
- parsing
- serialization
- View more
Zeropad your positive integers.
This module is small but easy to use. The purpose of this module is to check if a target string is longer than the source string, it can optionally also check if the source and target is the same length.
Shorten string by character length with word boundary supported
Generates a secure random string with a given length
Encoding 53-bit Integers using character sets of arbitrary length and order
Like `string.slice()` but bytewise
- binary
- bytes
- emoji
- encoding
- javascript
- json
- length
- library
- nodejs
- serialization
- size
- slice
- string
- string-manipulation
- View more
The Chapman Length Deviation algorithm implementation
Generate a random token of any length
Over-engineered string truncation for web UI's
Get the real byte length of a string.
add characters to the left of a string such that its total length is n
Truncate a JSON string
- javascript
- json
- json-parser
- length
- library
- limit
- maximum
- nodejs
- parse
- parsing
- serialization
- serialize
- shortener
- size
- View more
Fastest implementation of counting UTF-8 byte sequences in a Buffer.
add characters to the right of a string such that its total length is n