sindresorhus / widest-line
Get the visual width of the widest line in a string - the number of columns required to display it
☆37Updated last year
Alternatives and similar repositories for widest-line:
Users that are interested in widest-line are comparing it to the libraries listed below
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Check if a file path is a binary file☆44Updated 10 months ago
- Expands symbolic links and prints the resolved absolute filepath☆26Updated 10 months ago
- Detect the dominant newline character of a string☆55Updated last year
- Node.js 0.12 path.isAbsolute() ponyfill☆43Updated 4 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 2 years ago
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆35Updated 4 years ago
- Check if a number is in a given range☆21Updated 4 years ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Check if a value is a function☆27Updated 3 years ago
- set blocking stdio and stderr ensuring that terminal output does not truncate☆38Updated last year
- Truncate a semver version: 1.2.3 → 1.2.0☆17Updated 2 years ago
- Strip the final newline character from a string/buffer☆36Updated 4 months ago
- Slice a string with ANSI escape codes☆47Updated 9 months ago
- Repeat a string - fast☆34Updated 3 years ago
- A module which will endeavor to guess your terminal's level of color support.☆24Updated 6 years ago
- Sort an array of numbers☆16Updated last month
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆36Updated 3 years ago
- Convert directories to glob compatible strings☆44Updated 5 years ago
- Get the user agent of a recent Chrome version to pretend to be a browser in network requests☆36Updated last year
- Track the list of currently unhandled promise rejections☆24Updated 6 years ago
- Lowercase the keys of an object☆40Updated last year
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆55Updated 2 years ago
- Use node's fs.realpath, but fall back to the JS implementation if the native one fails☆26Updated last year
- Exclude certain items from an array☆20Updated 3 years ago
- Rename a function☆46Updated last year
- Check if a value is an error constructor☆13Updated 3 years ago
- Convert a time string to seconds: '0017' → 1337☆35Updated 3 years ago
- List of node.js builtin modules☆38Updated 11 months ago