sindresorhus / string-lengthLinks
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
☆169Updated last year
Alternatives and similar repositories for string-length
Users that are interested in string-length are comparing it to the libraries listed below
Sorting:
- Find the closest package.json file☆166Updated 7 months ago
- Get the visual width of a string - the number of columns required to display it☆515Updated 2 weeks ago
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆148Updated 4 months ago
- A static list of the Node.js builtin modules from the latest Node.js version☆125Updated 4 months ago
- Get metadata of a package from the npm registry☆245Updated last year
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆112Updated 3 years ago
- Toggle the CLI cursor☆113Updated last year
- Wordwrap a string with ANSI escape codes☆130Updated 4 months ago
- Strip leading whitespace from each line in a string☆144Updated 2 months ago
- Finds the common standard cache directory☆160Updated 9 months ago
- Detect the indentation of code☆200Updated 3 months ago
- Detects if a file is binary in Node.js. Similar to Perl's -B☆171Updated 3 weeks ago
- Recursively read a directory☆63Updated 8 years ago
- Get the latest version of an npm package☆175Updated last year
- Find the root directory of a Node.js project or npm package☆250Updated 7 months ago
- Check if your package was installed globally☆71Updated 2 years ago
- Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow☆243Updated 4 months ago
- Convert a value to an array☆133Updated 4 years ago
- Move a file - Even works across devices☆204Updated 2 years ago
- Check if a value is a plain object☆103Updated last year
- Tokenizes a string that represents a regular expression.☆96Updated last month
- Read a package.json file☆174Updated 2 months ago
- Resolve the path of a module like require.resolve() but from a given path☆144Updated 4 years ago
- Read the closest package.json file☆268Updated 2 months ago
- Sort the keys of an object☆107Updated 4 months ago
- Get a stream as a string, Buffer, ArrayBuffer or array☆358Updated last year
- ESLint plugin about ECMAScript syntactic features.☆110Updated 3 years ago
- Start a promise chain☆60Updated 3 months ago
- Truncate a string to a specific width in the terminal☆88Updated 2 months ago
- Randomize the order of items in an array☆109Updated 3 months ago