North Pittsburgh Meatpackers
Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

fix-path

2.1.0 • Public • Published

fix-path Build Status

Fix the $PATH on 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-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

License

MIT © Sindre Sorhus

install

npm i fix-path

Downloadsweekly downloads

3,536

version

2.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability