sindresorhus / filenamifyView external linksLinks
Convert a string to a valid safe filename
☆514Nov 5, 2025Updated 3 months ago
Alternatives and similar repositories for filenamify
Users that are interested in filenamify are comparing it to the libraries listed below
Sorting:
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆144Sep 11, 2025Updated 5 months ago
- Convert a URL to a valid filename☆80Sep 15, 2025Updated 5 months ago
- Check if a string is a valid filename☆62Aug 16, 2021Updated 4 years ago
- Slugify a string☆2,680Sep 11, 2025Updated 5 months ago
- Convert a string to a valid safe filename on the command-line☆64Sep 15, 2025Updated 5 months ago
- Regular expression for matching reserved filename characters☆53Sep 14, 2025Updated 5 months ago
- Returns an array filled with the specified input☆43Jul 8, 2022Updated 3 years ago
- Copy files☆434Updated this week
- Detect the dominant newline character of a string☆56Sep 23, 2023Updated 2 years ago
- Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz☆20Jul 9, 2022Updated 3 years ago
- Parse text columns, like the output of unix commands☆84Sep 9, 2025Updated 5 months ago
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated last week
- Reverse minimist. Convert an object of options into an array of command-line arguments☆187Feb 19, 2023Updated 2 years ago
- Get a random temporary file or directory path☆440Feb 2, 2026Updated last week
- Get namespaced config from the closest package.json☆121Nov 5, 2023Updated 2 years ago
- Check if a file path is an archive file☆16Apr 30, 2024Updated last year
- Ensures a value is a valid error by making it one if not☆86Sep 15, 2025Updated 4 months ago
- Move a file, directory, or symlink - Even works across devices☆205Jan 25, 2026Updated 3 weeks ago
- Find a file or directory by walking up parent directories☆634Sep 16, 2025Updated 4 months ago
- Lazy number range generator☆83Jan 2, 2024Updated 2 years ago
- Detect when an element is ready in the DOM☆447Jan 27, 2026Updated 2 weeks ago
- Assert a Map has a given key and return the value for it.☆12Nov 20, 2022Updated 3 years ago
- Turn an object into a string of HTML attributes☆50Mar 30, 2023Updated 2 years ago
- Read and parse a JSON file☆247May 17, 2023Updated 2 years ago
- Bind all methods in an object to itself or a specified context☆59Apr 19, 2021Updated 4 years ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated last week
- Normalize a URL☆870Jan 1, 2026Updated last month
- Clean up error stack traces☆346Nov 4, 2025Updated 3 months ago
- Open files in your editor at a specific line and column☆211Nov 23, 2025Updated 2 months ago
- Make directories and their parents if needed - Like `mkdir -p`, but cross-platform☆126May 2, 2024Updated last year
- Detect the indentation of code☆201Feb 2, 2026Updated last week
- Get metadata on the default editor or a specific editor☆55Sep 10, 2025Updated 5 months ago
- Check if a path exists☆155Mar 3, 2022Updated 3 years ago
- Measure the difference between two strings with the fastest JS implementation of the Levenshtein distance algorithm☆732Sep 11, 2025Updated 5 months ago
- Process execution for humans☆7,429Jan 29, 2026Updated 2 weeks ago
- Promisify a callback-style function☆1,514Sep 12, 2022Updated 3 years ago
- Humanize a URL: https://sindresorhus.com → sindresorhus.com☆252Jul 9, 2022Updated 3 years ago
- Remove leading, trailing and repeated whitespace from a string☆41Aug 10, 2021Updated 4 years ago
- Stringify and write JSON to a file atomically☆223Sep 14, 2025Updated 5 months ago