Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
☆171Jul 25, 2026Updated last month
Alternatives and similar repositories for string-length
Users that are interested in string-length are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Get the visual width of a string - the number of columns required to display it☆528Updated this week
- Check if a path is the current working directory☆22Updated this week
- Transform the first chunk in a stream☆27Updated this week
- Gracefully restore the CLI cursor on exit☆41Updated this week
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Updated this week
- Managed Kubernetes at scale on DigitalOcean • AdDigitalOcean Kubernetes includes the control plane, bandwidth allowance, container registry, automatic updates, and more for free.
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Updated this week
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 5 years ago
- Check if the character represented by a given Unicode code point is fullwidth☆51Updated this week
- Check if a file path is a binary file☆49Updated this week
- Check if a string is HTML☆95Updated this week
- A cache for managing namespaced sub-caches☆14Sep 4, 2021Updated 5 years ago
- Get the PATH environment variable key cross-platform☆46Updated this week
- Lowercase the keys of an object☆42Updated this week
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆23Updated this week
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆36Jan 24, 2021Updated 5 years ago
- Create an object path (dot notation) from a list or array of strings.☆16Dec 31, 2020Updated 5 years ago
- Get the version of a binary in semver format☆43Updated this week
- Detect the dominant newline character of a string☆55Updated this week
- Check if a path is inside another path☆40Updated this week
- Check if a path is in the current working directory☆23Updated this week
- Get the first path that exists on disk of multiple paths☆64Updated this week
- Map `visit` over an array of objects.☆17Jun 27, 2022Updated 4 years ago
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- Create an array with values that are present in the first input array but not additional ones☆40Updated this week
- Check if a path is a file, directory, or symlink☆81Updated this week
- Node.js 0.12 path.isAbsolute() ponyfill☆42Jan 24, 2021Updated 5 years ago
- Regular expression for matching reserved filename characters☆52Updated this week
- Check if a value is a regular expression☆26Updated this week
- Filter object keys and values into a new object☆105Updated this week
- Strip the final newline character from a string/buffer☆37Updated this week
- Make a function mimic another one☆96Updated this week
- Toggle the CLI cursor☆114Updated this week
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- Copy static properties, prototype properties, and descriptors from one object to another☆15Dec 16, 2020Updated 5 years ago
- Start a promise chain☆62Updated this week
- Check if a value is an object☆41Updated this week
- Check if a number is a redirect HTTP status code☆25Updated this week
- Resolve the path of a module like `require.resolve()` but from the current working directory☆69Updated this week
- Get your PATH prepended with locally installed binaries☆108Updated this week
- Truncate a string to a specific width in the terminal☆97Updated this week