Package Exports
- fix-path
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fix-path) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
fix-path 
Fix the
$PATHon macOS when run from a GUI app
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).
Install
$ npm install --save 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
License
MIT © Sindre Sorhus