sindresorhus / string-length
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
☆165Updated 7 months ago
Alternatives and similar repositories for string-length:
Users that are interested in string-length are comparing it to the libraries listed below
- Get the visual width of a string - the number of columns required to display it☆485Updated 7 months ago
- Truncate a string to a specific width in the terminal☆86Updated last year
- Check if a value is a plain object☆102Updated 9 months ago
- Toggle the CLI cursor☆106Updated 6 months ago
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆108Updated 2 years ago
- Find the root directory of a Node.js project or npm package☆240Updated last year
- Finds the common standard cache directory☆158Updated 11 months ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆140Updated 2 years ago
- Filter object keys and values into a new object☆101Updated 8 months ago
- Get a stream as a string, Buffer, ArrayBuffer or array☆345Updated 3 months ago
- Detect the indentation of code☆196Updated last year
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆144Updated last year
- Easily handle defaults for your options☆73Updated last year
- Wordwrap a string with ANSI escape codes☆120Updated last year
- Start a promise chain☆58Updated 3 years ago
- Read the closest package.json file☆266Updated last year
- Strip leading whitespace from each line in a string☆136Updated 3 years ago
- Get a random temporary file path☆79Updated 2 years ago
- Find the closest package.json file☆162Updated last year
- Get a random temporary file or directory path☆426Updated last year
- Like which(1) unix command. Find the first instance of an executable in the PATH.☆335Updated 4 months ago
- Detect the dominant newline character of a string☆55Updated last year
- Convert a value to an array☆130Updated 3 years ago
- Get the real path of the system temp directory☆83Updated 2 years ago
- Check if your package was installed globally☆70Updated last year
- Indent each line in a string☆113Updated 2 years ago
- Move a file - Even works across devices☆199Updated last year
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Read a package.json file☆166Updated last year
- when you want to fire an event no matter how a process exits.☆189Updated last year