Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

fix-path

3.0.0 • Public • Published

fix-path Build Status

Fix the $PATH on macOS when run from a GUI app

Useful for Electron apps as GUI apps on macOS doesn't inherit the $PATH defined in your dotfiles (.bashrc/.bash_profile/.zshrc/etc).

Install

$ npm install fix-path

Usage

const fixPath = require('fix-path');
 
console.log(process.env.PATH);
//=> '/usr/bin'
 
fixPath();
 
console.log(process.env.PATH);
//=> '/usr/local/bin:/usr/bin'

Related

Install

npm i fix-path

DownloadsWeekly Downloads

5,918

Version

3.0.0

License

MIT

Unpacked Size

3.22 kB

Total Files

5

Last publish

Collaborators

  • avatar
  • avatar