JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 19920
  • Score
    100M100P100Q128386F
  • License MIT

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

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 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'

License

MIT © Sindre Sorhus