sindresorhus / string-lengthLinks
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
☆165Updated 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☆490Updated 11 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☆164Updated 3 weeks ago
- Finds the common standard cache directory☆158Updated 2 months ago
- Get metadata of a package from the npm registry☆243Updated 11 months ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Check if a value is a plain object☆102Updated last year
- A proxy to `path`, replacing `\` with `/` for all results & methods to add, change, default, trim file extensions.☆153Updated 2 years ago
- Get a random temporary file path☆80Updated 2 years ago
- Truncate a string to a specific width in the terminal☆87Updated last year
- Get a stream as a string, Buffer, ArrayBuffer or array☆350Updated 7 months ago
- Read the closest package.json file☆268Updated last year
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆145Updated 2 years ago
- Find the root directory of a Node.js project or npm package☆246Updated 3 weeks ago
- A static list of the Node.js builtin modules from the latest Node.js version☆122Updated 4 months ago
- Filter object keys and values into a new object☆101Updated last year
- Read a package.json file☆169Updated last year
- Start a promise chain☆58Updated 3 years ago
- Get stdin as a string or buffer☆338Updated last year
- Toggle the CLI cursor☆108Updated 11 months ago
- Wordwrap a string with ANSI escape codes☆125Updated last year
- Indent each line in a string☆113Updated 3 years ago
- Extends minimatch.match() with support for multiple patterns☆303Updated last year
- Convert a value to an array☆129Updated 3 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆140Updated 3 years ago
- Load config from .{product}rc.{json,yml,js} file☆62Updated 2 years ago
- Check if your package was installed globally☆70Updated last year
- Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow☆239Updated 2 years ago
- Detects if a file is binary in Node.js. Similar to Perl's -B☆166Updated 8 months ago
- Detect the indentation of code☆196Updated last year