Get environment variables from the shell
☆86Feb 1, 2026Updated last month
Alternatives and similar repositories for shell-env
Users that are interested in shell-env are comparing it to the libraries listed below
Sorting:
- Get the command history of the user's shell☆86Nov 2, 2025Updated 4 months ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Get the user's default shell☆41Sep 11, 2025Updated 6 months ago
- Truncate a semver version: 1.2.3 → 1.2.0☆18Jul 9, 2022Updated 3 years ago
- Get the $PATH from the shell☆79Aug 21, 2025Updated 7 months ago
- Expands symbolic links and prints the resolved absolute filepath☆27May 6, 2024Updated last year
- Get the email of an npm user☆14Feb 26, 2024Updated 2 years ago
- Parse text columns, like the output of unix commands☆84Sep 9, 2025Updated 6 months ago
- Get the path of the parent module☆79Sep 15, 2025Updated 6 months ago
- Hook and modify stdout and stderr☆57Sep 9, 2025Updated 6 months ago
- Ensure a function is stable, meaning the same input always produces the same output☆16Nov 4, 2023Updated 2 years ago
- Get the URL from a web shortcut file☆14Aug 14, 2021Updated 4 years ago
- Parse/stringify contact info like `Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)`☆37Aug 9, 2021Updated 4 years ago
- Open the URL from a web shortcut file in the browser☆20Nov 3, 2021Updated 4 years ago
- Get free disk space info from `df -kP`☆64Sep 13, 2025Updated 6 months ago
- Get the visual width of a string - the number of columns required to display it☆13Oct 28, 2023Updated 2 years ago
- Open the URL from a web shortcut file☆17Nov 3, 2021Updated 4 years ago
- Convert a path to a file url: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆28Aug 9, 2021Updated 4 years ago
- Check if a value is an error constructor☆14Apr 7, 2021Updated 4 years ago
- Get a random key from an object☆18Jul 2, 2024Updated last year
- Modify the values of an object☆28Sep 10, 2021Updated 4 years ago
- Use fluent property chains in lieu of options objects☆21Jan 6, 2020Updated 6 years ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆96Jul 8, 2022Updated 3 years ago
- Lax `url.format()` that formats a hostname and port into IPv6-compatible socket form of `hostname:port`☆14Apr 9, 2021Updated 4 years ago
- Get the path to an app (macOS)☆48May 3, 2021Updated 4 years ago
- Regular expression for matching scoped npm package names☆27Jul 9, 2022Updated 3 years ago
- Convert matching single-quotes to double-quotes: I 'love' unicorns => I "love" unicorns☆22Apr 18, 2021Updated 4 years ago
- Strip a substring from the start/end of a string☆23Jul 9, 2022Updated 3 years ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated last month
- Get the iTerm2 version☆11Jan 5, 2026Updated 2 months ago
- Get the path of the current directory in Finder (macOS) and Explorer (Windows)☆19Aug 10, 2021Updated 4 years ago
- Get or check the current macOS version☆62Aug 12, 2021Updated 4 years ago
- Get the path to this package - Useful for testing☆22Aug 9, 2021Updated 4 years ago
- Get an array of parent directories including itself☆26Nov 7, 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
- Try to downgrade the permissions of a process with root privileges☆17Aug 31, 2023Updated 2 years ago
- Check if your code is running in a JXA environment☆32Sep 18, 2021Updated 4 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆41Apr 21, 2021Updated 4 years ago
- Wait for any promise to be fulfilled☆56Jul 9, 2022Updated 3 years ago