Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
☆171Jan 21, 2026Updated 2 months ago
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☆521Feb 18, 2026Updated last month
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Check if a path is the current working directory☆22May 10, 2025Updated 10 months ago
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 years ago
- NordVPN Special Discount Offer • AdSave on top-rated NordVPN 1 or 2-year plans with secure browsing, privacy protection, and support for for all major platforms.
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 9, 2025Updated 7 months ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Check if a path is inside another path☆40Sep 11, 2025Updated 6 months ago
- Check if the character represented by a given Unicode code point is fullwidth☆51Aug 31, 2025Updated 7 months ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Jan 24, 2026Updated 2 months ago
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Check if a string is HTML☆95Sep 9, 2025Updated 7 months ago
- NordVPN Threat Protection Pro™ • AdTake your cybersecurity to the next level. Block phishing, malware, trackers, and ads. Lightweight app that works with all browsers.
- A cache for managing namespaced sub-caches☆14Sep 4, 2021Updated 4 years ago
- Get the PATH environment variable key cross-platform☆46Sep 12, 2025Updated 6 months ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated 2 months ago
- Get the version of a binary in semver format☆42Apr 3, 2024Updated 2 years ago
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- Create an object path (dot notation) from a list or array of strings.☆16Dec 31, 2020Updated 5 years ago
- Detect the dominant newline character of a string☆55Sep 23, 2023Updated 2 years ago
- Get the first path that exists on disk of multiple paths☆64Sep 15, 2025Updated 6 months ago
- Create an array with values that are present in the first input array but not additional ones☆40Sep 14, 2021Updated 4 years ago
- DigitalOcean Gradient AI Platform • AdBuild production-ready AI agents using customizable tools or access multiple LLMs through a single endpoint. Create custom knowledge bases or connect external data.
- Map `visit` over an array of objects.☆17Jun 27, 2022Updated 3 years ago
- Regular expression for matching reserved filename characters☆53Sep 14, 2025Updated 6 months ago
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated 2 months ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- Check if a value is a regular expression☆26Oct 31, 2021Updated 4 years ago
- Filter object keys and values into a new object☆105May 27, 2024Updated last year
- Strip the final newline character from a string/buffer☆38Oct 28, 2024Updated last year
- Toggle the CLI cursor☆113Jul 26, 2024Updated last year
- Make a function mimic another one☆96Oct 28, 2024Updated last year
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting with the flexibility to host WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Cloudways by DigitalOcean.
- Start a promise chain☆60Sep 16, 2025Updated 6 months ago
- Utility method to run function either synchronously or asynchronously using the common `this.async()` style.☆25Aug 8, 2025Updated 8 months ago
- Copy static properties, prototype properties, and descriptors from one object to another☆15Dec 16, 2020Updated 5 years ago
- Check if a value is an object☆42Apr 16, 2021Updated 4 years ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Resolve the path of a module like `require.resolve()` but from the current working directory☆70Jan 23, 2021Updated 5 years ago
- Get your PATH prepended with locally installed binaries☆108Oct 28, 2024Updated last year