3.0.1 • Published 2 years ago
@seydx/fix-path v3.0.1
fix-path 
Fix the
$PATHon macOS when run from a GUI app
Useful for Electron apps as GUI apps on macOS and Linux doesn't inherit the $PATH defined in your dotfiles (.bashrc/.bash_profile/.zshrc/etc).
Install
$ npm install fix-pathUsage
const fixPath = require('fix-path');
console.log(process.env.PATH);
//=> '/usr/bin'
fixPath();
console.log(process.env.PATH);
//=> '/usr/local/bin:/usr/bin'Related
- shell-path - Get the
$PATHfrom the shell
3.0.1
2 years ago