sindresorhus / string-lengthLinks
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
☆169Updated last week
Alternatives and similar repositories for string-length
Users that are interested in string-length are comparing it to the libraries listed below
Sorting:
- Get the visual width of a string - the number of columns required to display it☆518Updated last month
- Get metadata of a package from the npm registry☆247Updated last year
- Check if your package was installed globally☆71Updated 2 years ago
- Find the closest package.json file☆166Updated 7 months ago
- Read a package.json file☆175Updated 2 months ago
- Sort the keys of an object☆108Updated 5 months ago
- Find the root directory of a Node.js project or npm package☆250Updated 7 months ago
- Wordwrap a string with ANSI escape codes☆130Updated 4 months ago
- Detect the indentation of code☆200Updated 4 months ago
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆148Updated 4 months ago
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆112Updated 3 years ago
- Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow☆243Updated 5 months ago
- Finds the common standard cache directory☆161Updated 9 months ago
- Toggle the CLI cursor☆113Updated last year
- Strip leading whitespace from each line in a string☆145Updated 3 months ago
- A static list of the Node.js builtin modules from the latest Node.js version☆125Updated 4 months ago
- Get a stream as a string, Buffer, ArrayBuffer or array☆358Updated last year
- Read the closest package.json file☆268Updated 2 months ago
- Get the latest version of an npm package☆176Updated last year
- Like which(1) unix command. Find the first instance of an executable in the PATH.☆348Updated 2 weeks ago
- normalizes package metadata, typically found in package.json file.☆204Updated last week
- Get the real path of the system temp directory☆85Updated 3 years ago
- when you want to fire an event no matter how a process exits.☆197Updated 3 months ago
- Recursively read a directory☆63Updated 8 years ago
- Move a file, directory, or symlink - Even works across devices☆205Updated last week
- Tokenizes a string that represents a regular expression.☆96Updated last week
- Randomize the order of items in an array☆110Updated 4 months ago
- Walk through a folder and figure out what goes in an npm package☆116Updated 2 weeks ago
- Let a globally installed package use a locally installed version of itself if available☆155Updated last year
- Ponyfill for Error#captureStackTrace☆63Updated 3 years ago