sindresorhus / valid-filenameView external linksLinks
Check if a string is a valid filename
☆62Aug 16, 2021Updated 4 years ago
Alternatives and similar repositories for valid-filename
Users that are interested in valid-filename are comparing it to the libraries listed below
Sorting:
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Regular expression for matching reserved filename characters☆53Sep 14, 2025Updated 5 months ago
- Convert a URL to a valid filename☆80Sep 15, 2025Updated 4 months ago
- Truncate a semver version: 1.2.3 → 1.2.0☆18Jul 9, 2022Updated 3 years ago
- Alphabetically sort an array of strings☆40Apr 9, 2021Updated 4 years ago
- Get a random property from an object☆15Jul 2, 2024Updated last year
- Get the URL from a web shortcut file☆14Aug 14, 2021Updated 4 years ago
- Strip a substring from the start/end of a string☆23Jul 9, 2022Updated 3 years ago
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Check if a value is a Blob☆24Oct 27, 2023Updated 2 years ago
- Split a string at one or more indices☆25May 3, 2021Updated 4 years ago
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated last week
- Parse/stringify contact info like `Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)`☆37Aug 9, 2021Updated 4 years ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Get the $PATH from the shell☆79Aug 21, 2025Updated 5 months ago
- List of platforms supported by Node.js☆12Nov 3, 2021Updated 4 years ago
- Get a random key from an object☆18Jul 2, 2024Updated last year
- Get the number of days in a month☆27Oct 18, 2021Updated 4 years ago
- Get the version of a binary in semver format☆42Apr 3, 2024Updated last year
- Modify the filename in a path☆17Jul 9, 2022Updated 3 years ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Aug 31, 2023Updated 2 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆144Sep 11, 2025Updated 5 months ago
- Get the email of an npm user☆14Feb 26, 2024Updated last year
- Sort an array of numbers☆18Sep 18, 2025Updated 4 months ago
- Regular expression for matching scoped npm package names☆27Jul 9, 2022Updated 3 years ago
- Convert a Source Map object to a comment☆16Aug 9, 2021Updated 4 years ago
- Check if it's the first time the process is run☆83Sep 12, 2025Updated 5 months ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆41Apr 21, 2021Updated 4 years ago
- Convert a string to a valid safe filename☆514Nov 5, 2025Updated 3 months ago
- Check if a filepath is a Markdown file☆22May 4, 2021Updated 4 years ago
- Convert a string to a valid safe filename on the command-line☆64Sep 15, 2025Updated 4 months ago
- Create a noop process and get the PID☆14Aug 10, 2021Updated 4 years ago
- Ensure a function is stable, meaning the same input always produces the same output☆16Nov 4, 2023Updated 2 years ago
- Strip a path from a path☆18Aug 18, 2021Updated 4 years ago
- Run promise-returning & async functions in series☆71Aug 12, 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
- Create an array with values that are present in the first input array but not additional ones☆40Sep 14, 2021Updated 4 years ago
- Get the path to this package - Useful for testing☆22Aug 9, 2021Updated 4 years ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆19Apr 3, 2024Updated last year