sindresorhus / string-length
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
☆165Updated 10 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☆487Updated 9 months ago
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆110Updated 2 years ago
- Find the closest package.json file☆163Updated last year
- Wordwrap a string with ANSI escape codes☆123Updated last year
- Finds the common standard cache directory☆158Updated 2 weeks ago
- Recursively read a directory☆63Updated 7 years ago
- Start a promise chain☆58Updated 3 years ago
- Filter object keys and values into a new object☆101Updated 10 months ago
- Get a stream as a string, Buffer, ArrayBuffer or array☆347Updated 5 months ago
- Easily handle defaults for your options☆74Updated last year
- Get a random temporary file path☆79Updated 2 years ago
- Detects if a file is binary in Node.js. Similar to Perl's -B☆165Updated 6 months ago
- Read the closest package.json file☆267Updated last year
- Find the root directory of a Node.js project or npm package☆242Updated last year
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆144Updated last year
- Strip leading whitespace from each line in a string☆137Updated 3 years ago
- Get metadata of a package from the npm registry☆240Updated 9 months ago
- Sort the keys of an object☆103Updated 7 months ago
- Toggle the CLI cursor☆107Updated 8 months ago
- Move a file - Even works across devices☆199Updated last year
- Truncate a string to a specific width in the terminal☆87Updated last year
- Check if your package was installed globally☆70Updated last year
- Make a synchronous function have a timeout☆125Updated 7 months ago
- Read a package.json file☆165Updated last year
- 🚸 Cross platform children list of a PID.☆124Updated 2 years ago
- Get the real path of the system temp directory☆83Updated 2 years ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Check whether a package or organization name is available on npm☆170Updated last year
- Get the hash of an object☆134Updated last year
- when you want to fire an event no matter how a process exits.☆191Updated last year