$PATHfrom the shell
Useful for Electron/NW.js apps as GUI apps on macOS doesn't inherit the
$PATH defined in your dotfiles (.bashrc/.bash_profile/.zshrc/etc).
$ npm install --save shell-path
When executed from a GUI app on macOS:
const shellPath = ;console;//=> '/usr/bin'console;//=> '/usr/local/bin:/usr/bin:...'
Return a promise for the
- fix-path - Fix the $PATH on macOS when run from a GUI app
- shell-env - Get environment variables from the shell
- shell-history - Get the command history of the user's shell
MIT © Sindre Sorhus