sindresorhus / string-length
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
☆162Updated 4 months ago
Related projects ⓘ
Alternatives and complementary repositories for string-length
- Get the visual width of a string - the number of columns required to display it☆478Updated 4 months ago
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆144Updated last year
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆107Updated 2 years ago
- Find the root directory of a Node.js project or npm package☆235Updated last year
- Finds the common standard cache directory☆151Updated 8 months ago
- Get the real path of the system temp directory☆82Updated 2 years ago
- Find the closest package.json file☆159Updated last year
- Read the closest package.json file☆258Updated last year
- Reverse minimist. Convert an object of options into an array of command-line arguments☆184Updated last year
- Sort the keys of an object☆101Updated 2 months ago
- Move a file - Even works across devices☆198Updated last year
- Truncate a string to a specific width in the terminal☆85Updated last year
- Detect the indentation of code☆196Updated last year
- Filter object keys and values into a new object☆100Updated 5 months ago
- Get a stream as a string, Buffer, ArrayBuffer or array☆341Updated last week
- A regex to match any full character, considering weird character ranges.☆27Updated 2 years ago
- Check whether a package or organization name is available on npm☆169Updated 9 months ago
- Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow☆238Updated 2 years ago
- Resolve the path of a module like require.resolve() but from a given path☆139Updated 3 years ago
- Sort an array on an object property☆199Updated 2 months ago
- when you want to fire an event no matter how a process exits.☆187Updated last year
- Get metadata of a package from the npm registry☆237Updated 3 months ago
- Check if your package was installed globally☆70Updated last year
- Toggle the CLI cursor☆103Updated 3 months ago
- Get stdin as a string or buffer☆337Updated last year
- Get a random temporary file path☆79Updated last year
- Read a package.json file☆165Updated 11 months ago
- Convert a value to an array☆131Updated 3 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆141Updated 2 years ago
- JavaScript option parsing and help generation library☆162Updated 6 months ago