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:
- Get the visual width of a string - the number of columns required to display it☆513Updated 3 months ago
- Detect the indentation of code☆200Updated 3 months ago
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆112Updated 3 years ago
- Finds the common standard cache directory☆160Updated 8 months ago
- Find the closest package.json file☆166Updated 6 months ago
- Get a stream as a string, Buffer, ArrayBuffer or array☆358Updated last year
- Check if your package was installed globally☆70Updated 2 years ago
- Find the root directory of a Node.js project or npm package☆250Updated 6 months ago
- Get metadata of a package from the npm registry☆245Updated last year
- Strip leading whitespace from each line in a string☆144Updated 2 months ago
- Detects if a file is binary in Node.js. Similar to Perl's -B☆170Updated last week
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆148Updated 3 months ago
- Sort the keys of an object☆107Updated 3 months ago
- Toggle the CLI cursor☆113Updated last year
- Get the latest version of an npm package☆175Updated last year
- Wordwrap a string with ANSI escape codes☆130Updated 3 months ago
- normalizes package metadata, typically found in package.json file.☆203Updated this week
- Walk through a folder and figure out what goes in an npm package☆115Updated 3 weeks ago
- Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow☆243Updated 4 months ago
- A static list of the Node.js builtin modules from the latest Node.js version☆125Updated 3 months ago
- Read the closest package.json file☆268Updated last month
- Read a package.json file☆174Updated last month
- Like which(1) unix command. Find the first instance of an executable in the PATH.☆345Updated last week
- Timeout a promise after a specified amount of time☆299Updated 2 months ago
- Load config from .{product}rc.{json,yml,js} file☆62Updated 2 years ago
- Convert a value to an array☆133Updated 4 years ago
- Recursively read a directory☆63Updated 8 years ago
- Move a file - Even works across devices☆204Updated 2 years ago
- Check if a string or buffer is SVG☆143Updated 5 months ago
- Get stdin as a string or buffer☆346Updated 2 years ago