sindresorhus / widest-lineLinks
Get the visual width of the widest line in a string - the number of columns required to display it
☆39Updated 2 years ago
Alternatives and similar repositories for widest-line
Users that are interested in widest-line are comparing it to the libraries listed below
Sorting:
- Detect the dominant newline character of a string☆56Updated 2 years ago
- Get the first path that exists on disk of multiple paths☆62Updated 3 months ago
- Strip redundant indentation and indent the string☆55Updated 4 years ago
- Slice a string with ANSI escape codes☆50Updated 3 months ago
- Check if a value is an object☆42Updated 4 years ago
- Check if a file path is a binary file☆49Updated last year
- Expands symbolic links and prints the resolved absolute filepath☆27Updated last year
- Strip the final newline character from a string/buffer☆38Updated last year
- Lowercase the keys of an object☆41Updated 2 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆18Updated 3 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Updated 3 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Updated 4 years ago
- Check if the character represented by a given Unicode code point is fullwidth☆51Updated 3 months ago
- Check if a path is a file, directory, or symlink☆80Updated last year
- Get the user home directory with fallback to the system temp directory☆30Updated 4 years ago
- Convert directories to glob compatible strings☆44Updated 6 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆63Updated last year
- Gracefully restore the CLI cursor on exit☆40Updated last year
- Regular expression for matching a shebang line☆48Updated 4 years ago
- Trim newlines from the start and/or end of a string☆49Updated 2 years ago
- ES2015 Number.isNaN() ponyfill☆29Updated last year
- Wait for any promise to be fulfilled☆56Updated 3 years ago
- Modify the values of an object☆29Updated 4 years ago
- Split a string at one or more indices☆25Updated 4 years ago
- Get the directory of globally installed packages and binaries☆77Updated 2 years ago
- Get the version of a binary in semver format☆42Updated last year
- Lax URL parsing with support for protocol-less URLs and IPs☆55Updated 3 months ago
- Get the user agent of a recent Chrome version to pretend to be a browser in network requests☆37Updated 2 years ago
- Strip UTF-8 byte order mark (BOM) from a buffer☆21Updated 2 years ago