sindresorhus / widest-lineLinks
Get the visual width of the widest line in a string - the number of columns required to display it
☆38Updated last year
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☆55Updated last year
- Get the first path that exists on disk of multiple paths☆59Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Check if a file path is a binary file☆46Updated last year
- Check if a path is a file, directory, or symlink☆78Updated last year
- Slice a string with ANSI escape codes☆50Updated this week
- Truncate a semver version: 1.2.3 → 1.2.0☆17Updated 3 years ago
- Trim newlines from the start and/or end of a string☆48Updated 2 years ago
- Returns an array filled with the specified input☆42Updated 3 years ago
- Check if a value is an object☆40Updated 4 years ago
- Lowercase the keys of an object☆40Updated 2 years ago
- Check if your package was installed globally☆70Updated last year
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 3 years ago
- Transform the first chunk in a stream☆26Updated last year
- Get the version of a binary in semver format☆41Updated last year
- Expands symbolic links and prints the resolved absolute filepath☆26Updated last year
- Get the user's default shell☆40Updated 3 years ago
- Get the user agent of a recent Chrome version to pretend to be a browser in network requests☆36Updated last year
- Node.js 0.12 path.isAbsolute() ponyfill☆43Updated 4 years ago
- Repeat a string - fast☆34Updated 4 years ago
- Get the user home directory with fallback to the system temp directory☆30Updated 4 years ago
- Check if argv has a specific flag☆93Updated 4 years ago
- Truncate a string to a specific width in the terminal☆87Updated last week
- Strip UTF-8 byte order mark (BOM) from a buffer☆19Updated last year
- A module which will endeavor to guess your terminal's level of color support.☆23Updated 6 years ago
- Check if the process is running as root user, for example, one started with `sudo`☆78Updated 3 years ago
- Strip the final newline character from a string/buffer☆36Updated 10 months ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Check if a value is a function☆27Updated 4 years ago
- Check if the character represented by a given Unicode code point is fullwidth☆49Updated last week