Fix the
$PATH
on OS X when run from a GUI app
Apps on OS X doesn't inherit the $PATH
defined in your dotfiles (.bashrc/.bash_profile/.zshrc/etc).
Useful for Electron/NW.js apps so you can spawn binaries.
$ npm install --save fix-path
var fixPath = require('fix-path');
console.log(process.env.PATH);
//=> '/usr/bin'
fixPath();
console.log(process.env.PATH);
//=> '/usr/local/bin:/usr/bin'
MIT © Sindre Sorhus