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 4 years ago
- Check if a file path is a binary file☆44Updated last year
- Expands symbolic links and prints the resolved absolute filepath☆26Updated last year
- Truncate a semver version: 1.2.3 → 1.2.0☆17Updated 2 years ago
- Sort an array of numbers☆16Updated 3 months ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Updated 4 years ago
- Check if a number is in a given range☆21Updated 4 years ago
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Strip the final newline character from a string/buffer☆36Updated 6 months ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 2 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Check if a path is a file, directory, or symlink☆78Updated 9 months ago
- Check if a file path is a compressed file☆17Updated last year
- Rename a function☆46Updated last year
- Gracefully restore the CLI cursor on exit☆38Updated 9 months ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Check if a value is an error constructor☆13Updated 4 years ago
- Get the user home directory with fallback to the system temp directory☆30Updated 4 years ago
- Log the value/error of a promise☆26Updated 4 years ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz☆19Updated 2 years ago
- Repeat a string - fast☆34Updated 4 years ago
- Get an array of parent directories including itself☆27Updated last year
- List of node.js builtin modules☆38Updated last year
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- set blocking stdio and stderr ensuring that terminal output does not truncate☆38Updated last year
- A better `Promise.race()`☆46Updated 2 years ago
- Wait for any promise to be fulfilled☆54Updated 2 years ago