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☆61Updated 2 months ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Check if a file path is a binary file☆48Updated last year
- Check if a value is an object☆42Updated 4 years ago
- Strip the final newline character from a string/buffer☆37Updated last year
- Lowercase the keys of an object☆40Updated 2 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Updated 3 years ago
- Slice a string with ANSI escape codes☆50Updated 2 months ago
- Truncate a semver version: 1.2.3 → 1.2.0☆18Updated 3 years ago
- Extract the article title of a HTML document☆55Updated 2 months ago
- Expands symbolic links and prints the resolved absolute filepath☆27Updated last year
- Get the version of a binary in semver format☆42Updated last year
- Strip UTF-8 byte order mark (BOM) from a buffer☆20Updated 2 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Convert a time string to seconds: '0017' → 1337☆35Updated 4 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Updated 4 years ago
- Wait for any promise to be fulfilled☆56Updated 3 years ago
- Transform the first chunk in a stream☆28Updated 2 years ago
- Modify the values of an object☆28Updated 4 years ago
- Check if a path is a file, directory, or symlink☆80Updated last year
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆63Updated last year
- Check if argv has a specific flag☆95Updated 4 years ago
- Check if a number is in a given range☆21Updated 4 years ago
- Check if the character represented by a given Unicode code point is fullwidth☆50Updated 3 months ago
- Break out of a promise chain☆24Updated 4 years ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆46Updated last year
- Repeat a string - fast☆35Updated 4 years ago
- Get the PATH environment variable key cross-platform☆45Updated 2 months ago
- A module which will endeavor to guess your terminal's level of color support.☆23Updated 7 years ago