sindresorhus / unused-filenameView external linksLinks
Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`
☆144Sep 11, 2025Updated 5 months ago
Alternatives and similar repositories for unused-filename
Users that are interested in unused-filename are comparing it to the libraries listed below
Sorting:
- Check if a string is a valid filename☆62Aug 16, 2021Updated 4 years ago
- Convert a string to a valid safe filename☆514Nov 5, 2025Updated 3 months ago
- Ensures a value is a valid error by making it one if not☆86Sep 15, 2025Updated 5 months ago
- Parse text columns, like the output of unix commands☆84Sep 9, 2025Updated 5 months ago
- Get the version numbers of a package from the npm registry☆31Feb 26, 2024Updated last year
- Convert a URL to a valid filename☆80Sep 15, 2025Updated 5 months ago
- Get an array of parent directories including itself☆26Nov 7, 2023Updated 2 years ago
- Get the email of an npm user☆14Feb 26, 2024Updated last year
- Count the number of lines in a string☆10Apr 17, 2016Updated 9 years ago
- Change the skin tone of an emoji☆62Sep 21, 2025Updated 4 months ago
- Pretty time zone: +2 or -9:30☆58Jul 9, 2022Updated 3 years ago
- List of archive file extensions☆16Apr 30, 2024Updated last year
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Display an error in a GUI dialog☆22May 3, 2021Updated 4 years ago
- Split a string at one or more indices☆25May 3, 2021Updated 4 years ago
- Strip UTF-8 byte order mark (BOM) from a buffer☆21Oct 24, 2023Updated 2 years ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆19Apr 3, 2024Updated last year
- Split a string on the first occurrence of a given separator☆75Aug 20, 2025Updated 5 months ago
- Get the iTerm2 version☆11Jan 5, 2026Updated last month
- Break out of a promise chain☆24Apr 7, 2021Updated 4 years ago
- Get the version of a binary in semver format☆42Apr 3, 2024Updated last year
- Reliably get the terminal window size☆146Feb 2, 2026Updated 2 weeks ago
- Find out if a computer is charging☆76May 16, 2018Updated 7 years ago
- Round a number to a specific number of decimal places: 1.234 → 1.2☆159Sep 17, 2025Updated 5 months ago
- Reliably get the terminal window size - cross-platform☆27Nov 4, 2023Updated 2 years ago
- Extract the article title of a HTML document☆56Sep 9, 2025Updated 5 months ago
- Check if a file path is an archive file☆16Apr 30, 2024Updated last year
- Check if something is a promise☆45Apr 16, 2021Updated 4 years ago
- Copy files☆434Updated this week
- Get a GitHub username from an email address☆51Aug 5, 2023Updated 2 years ago
- Open files in your editor at a specific line and column☆55Nov 3, 2021Updated 4 years ago
- Regular expression for matching scoped npm package names☆27Jul 9, 2022Updated 3 years ago
- Get all emails in a text file or stdin☆25Feb 2, 2026Updated 2 weeks ago
- Get the path of the current directory in Finder (macOS) and Explorer (Windows)☆19Aug 10, 2021Updated 4 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆18Jul 9, 2022Updated 3 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆41Apr 21, 2021Updated 4 years ago
- Get metadata on the default editor or a specific editor☆55Sep 10, 2025Updated 5 months ago
- Embed data in other data and easily extract it when needed☆76Aug 12, 2021Updated 4 years ago
- Check if a path exists☆26Oct 30, 2023Updated 2 years ago