sindresorhus / terminal-sizeView external linksLinks
Reliably get the terminal window size
☆146Feb 2, 2026Updated 2 weeks ago
Alternatives and similar repositories for terminal-size
Users that are interested in terminal-size are comparing it to the libraries listed below
Sorting:
- Reliably get the terminal window size - cross-platform☆27Nov 4, 2023Updated 2 years ago
- Check if an Iterable is empty☆23Sep 14, 2025Updated 5 months ago
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated last week
- Bind all methods in an object to itself or a specified context☆59Apr 19, 2021Updated 4 years ago
- Get the email of an npm user☆14Feb 26, 2024Updated last year
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Get the number of days in a month☆27Oct 18, 2021Updated 4 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 9, 2025Updated 5 months ago
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Check if a value is a regular expression☆26Oct 31, 2021Updated 4 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Jan 24, 2026Updated 3 weeks ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆96Jul 8, 2022Updated 3 years ago
- Import a module like with `require()` but from a given path☆86Jul 8, 2022Updated 3 years ago
- Check if a string is a scoped npm package name☆25Jul 9, 2022Updated 3 years ago
- Truncate a string to a specific width in the terminal☆88Oct 23, 2025Updated 3 months ago
- Repeat a string - fast☆35May 3, 2021Updated 4 years ago
- Get the version numbers of a package from the npm registry☆31Feb 26, 2024Updated last year
- Parse and stringify file paths with line and column like `unicorn.js14`☆24Nov 22, 2025Updated 2 months ago
- Strip UTF-8 byte order mark (BOM) from a buffer☆21Oct 24, 2023Updated 2 years ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years ago
- Detect the dominant newline character of a string☆56Sep 23, 2023Updated 2 years ago
- Lax URL parsing with support for protocol-less URLs and IPs☆55Sep 7, 2025Updated 5 months ago
- Open files in your editor at a specific line and column☆55Nov 3, 2021Updated 4 years ago
- Check if a value is an object☆42Apr 16, 2021Updated 4 years ago
- Run the Node.js binary no matter what☆142Sep 15, 2025Updated 5 months ago
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Lowercase the keys of an object☆41Feb 2, 2026Updated last week
- Import all modules in a directory☆139Jan 4, 2023Updated 3 years ago
- Create a noop process and get the PID☆14Aug 10, 2021Updated 4 years ago
- Parse text columns, like the output of unix commands☆84Sep 9, 2025Updated 5 months ago
- Get or check the current macOS version☆62Aug 12, 2021Updated 4 years ago
- Get the default browser☆28Dec 19, 2023Updated 2 years ago
- Create an array with values that are present in the first input array but not additional ones☆40Sep 14, 2021Updated 4 years ago
- Modify the values of an object☆29Sep 10, 2021Updated 4 years ago
- Regular expression for matching scoped npm package names☆27Jul 9, 2022Updated 3 years ago
- Check if a string is a valid filename☆62Aug 16, 2021Updated 4 years ago
- Convert RGB color to HEX☆42May 2, 2024Updated last year
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago