Get paths for storing things like data, config, cache, etc
☆428Jan 24, 2026Updated last month
Alternatives and similar repositories for env-paths
Users that are interested in env-paths are comparing it to the libraries listed below
Sorting:
- Simple config handling for your app or module☆1,324Feb 4, 2026Updated last month
- Get XDG Base Directory paths☆94Aug 5, 2021Updated 4 years ago
- Display an error in a GUI dialog☆22May 3, 2021Updated 4 years ago
- Reliably get the terminal window size☆146Feb 2, 2026Updated last month
- Bind all methods in an object to itself or a specified context☆59Apr 19, 2021Updated 4 years ago
- Clean up error stack traces☆346Nov 4, 2025Updated 4 months ago
- Regular expression for matching reserved filename characters☆53Sep 14, 2025Updated 5 months ago
- Copy a file☆123Aug 13, 2025Updated 6 months ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆144Sep 11, 2025Updated 5 months ago
- Lazy number range generator☆83Jan 2, 2024Updated 2 years ago
- Strip UTF-8 byte order mark (BOM) from a buffer☆21Oct 24, 2023Updated 2 years ago
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 4 years ago
- Detect the dominant newline character of a string☆56Sep 23, 2023Updated 2 years ago
- Check if a string is a valid filename☆62Aug 16, 2021Updated 4 years ago
- Convert a string to a valid safe filename☆516Nov 5, 2025Updated 4 months ago
- Make unhandled promise rejections fail hard right away instead of the default silent fail☆107Jul 8, 2022Updated 3 years ago
- Check if it's the first time the process is run☆83Sep 12, 2025Updated 5 months ago
- Check if a file path is an archive file☆16Apr 30, 2024Updated last year
- Make a directory and its parents if needed - Think `mkdir -p`☆477Sep 10, 2025Updated 5 months ago
- Round a number to a specific number of decimal places: 1.234 → 1.2☆159Sep 17, 2025Updated 5 months ago
- Read the closest package.json file☆268Nov 7, 2025Updated 3 months ago
- Ensures a value is a valid error by making it one if not☆88Sep 15, 2025Updated 5 months ago
- Ensure a function is only called once☆165Feb 2, 2026Updated last month
- Terminal task list☆3,297Aug 28, 2022Updated 3 years ago
- Check if a value is a plain object☆104May 4, 2024Updated last year
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated last month
- Parse text columns, like the output of unix commands☆84Sep 9, 2025Updated 5 months ago
- Convert a value to an array☆133Nov 9, 2021Updated 4 years ago
- Create an error from multiple errors☆249Sep 14, 2023Updated 2 years ago
- Get the path of the current directory in Finder (macOS) and Explorer (Windows)☆19Aug 10, 2021Updated 4 years ago
- Move a file, directory, or symlink - Even works across devices☆206Jan 25, 2026Updated last month
- Reverse minimist. Convert an object of options into an array of command-line arguments☆187Feb 19, 2023Updated 3 years ago
- Find a file or directory by walking up parent directories☆634Sep 16, 2025Updated 5 months ago
- Find the root directory of a Node.js project or npm package☆251Feb 1, 2026Updated last month
- Get the first path that exists on disk of multiple paths☆63Sep 15, 2025Updated 5 months ago
- Truncate a string to a specific width in the terminal☆88Updated this week
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Get a random property from an object☆15Jul 2, 2024Updated last year
- Get the path to an app (macOS)☆64Jul 9, 2022Updated 3 years ago