{"versions":{"4.0.0":{"name":"fix-path","version":"4.0.0","description":"Fix the $PATH on macOS and Linux when run from a GUI app","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/fix-path.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["fix","path","macos","env","environment","variable","shell","sh","zsh","electron"],"dependencies":{"shell-path":"^3.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"40d974dc08bc6e83a980f577d07b2b4206f37dba","bugs":{"url":"https://github.com/sindresorhus/fix-path/issues"},"homepage":"https://github.com/sindresorhus/fix-path#readme","_id":"fix-path@4.0.0","_nodeVersion":"16.7.0","_npmVersion":"7.20.3","dist":{"shasum":"bc1d14f038edb734ac46944a45454106952ca429","size":1664,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fix-path/-/fix-path-4.0.0.tgz","integrity":"sha512-g31GX207Tt+psI53ZSaB1egprYbEN0ZYl90aKcO22A2LmCNnFsSq3b5YpoKp3E/QEiWByTXGJOkFQG4S07Bc1A=="},"_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"npm@silverwind.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fix-path_4.0.0_1629891371223_0.40354634632246555"},"_hasShrinkwrap":false,"publish_time":1629891371343,"_cnpm_publish_time":1629891371343,"_cnpmcore_publish_time":"2021-12-16T16:07:09.756Z","contributors":[]},"2.0.0":{"name":"fix-path","version":"2.0.0","description":"Fix the $PATH on OS X when run from a GUI app","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/fix-path"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["fix","path","osx","env","var","environment","variable","shell","sh","zsh","electron","nwjs"],"dependencies":{"shell-path":"^2.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"46301c684b6ccf5f4e1bca3f77404eab4a91a7ed","bugs":{"url":"https://github.com/sindresorhus/fix-path/issues"},"homepage":"https://github.com/sindresorhus/fix-path","_id":"fix-path@2.0.0","_shasum":"f355834d04a59bcba3cda4502e767a8cd8f75e05","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f355834d04a59bcba3cda4502e767a8cd8f75e05","size":1667,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fix-path/-/fix-path-2.0.0.tgz","integrity":"sha512-aKgeXiXlgywJGAtjhrSqnNC/T/98fEcTiGX7BZGB3Sk7LJ8kyNmpnbyR/W/+tr5YUXrmKEXaeG38T4/fqN+UrQ=="},"maintainers":[{"name":"anonymous","email":"npm@silverwind.io"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fix-path-2.0.0.tgz_1459960552211_0.5505990979727358"},"directories":{},"publish_time":1459960552754,"_hasShrinkwrap":false,"_cnpm_publish_time":1459960552754,"_cnpmcore_publish_time":"2021-12-16T16:07:10.841Z","contributors":[]},"1.1.0":{"name":"fix-path","version":"1.1.0","description":"Fix the $PATH on OS X when run from a GUI app","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/fix-path"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.12.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["fix","path","osx","env","var","environment","variable","shell","sh","zsh","electron","atom-shell","nwjs"],"dependencies":{"shell-path":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"a9d5559dacd9dc08184e1bd9a200756d07c31848","bugs":{"url":"https://github.com/sindresorhus/fix-path/issues"},"homepage":"https://github.com/sindresorhus/fix-path","_id":"fix-path@1.1.0","_shasum":"95ce2c5a8b52e8ca27fe23222ebb09690c6f8d99","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"anonymous","email":"npm@silverwind.io"}],"dist":{"shasum":"95ce2c5a8b52e8ca27fe23222ebb09690c6f8d99","size":1673,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fix-path/-/fix-path-1.1.0.tgz","integrity":"sha512-e6f/w205ddFUGszTI5gtw+P9czqrKL+C8KOgoepKU7Aro02qC64wzRV1XJW1U2i0kCeU9cuI352EmQM6xz2ghQ=="},"directories":{},"publish_time":1430157019661,"_hasShrinkwrap":false,"_cnpm_publish_time":1430157019661,"_cnpmcore_publish_time":"2021-12-16T16:07:11.053Z","contributors":[]},"3.0.0":{"name":"fix-path","version":"3.0.0","description":"Fix the $PATH on macOS when run from a GUI app","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/fix-path.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["fix","path","macos","osx","env","environment","variable","shell","sh","zsh","electron"],"dependencies":{"shell-path":"^2.1.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.11.0","xo":"^0.26.1"},"gitHead":"8f12bec72ee4319638a43758b40d61c25427404b","bugs":{"url":"https://github.com/sindresorhus/fix-path/issues"},"homepage":"https://github.com/sindresorhus/fix-path#readme","_id":"fix-path@3.0.0","_nodeVersion":"13.1.0","_npmVersion":"6.12.1","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c6b82fd5f5928e520b392a63565ebfef0ddf037e","size":1716,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fix-path/-/fix-path-3.0.0.tgz","integrity":"sha512-opGAl4+ip5jUikHR2C8Jo7czZ80pz8EK/0gMlAZu7xgDmBqIynlX8SMYg9KowYjAU6HT0nxsSJEWru0u+n+N2Q=="},"maintainers":[{"name":"anonymous","email":"npm@silverwind.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fix-path_3.0.0_1581872950972_0.4878921353630863"},"_hasShrinkwrap":false,"publish_time":1581872951134,"_cnpm_publish_time":1581872951134,"_cnpmcore_publish_time":"2021-12-16T16:07:10.172Z","contributors":[]},"2.1.0":{"name":"fix-path","version":"2.1.0","description":"Fix the $PATH on macOS when run from a GUI app","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/fix-path.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["fix","path","macos","osx","env","var","environment","variable","shell","sh","zsh","electron","nwjs"],"dependencies":{"shell-path":"^2.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"b9fa7c4ce92507be1bd487e450b2aa06e3f57f0e","bugs":{"url":"https://github.com/sindresorhus/fix-path/issues"},"homepage":"https://github.com/sindresorhus/fix-path#readme","_id":"fix-path@2.1.0","_shasum":"72ece739de9af4bd63fd02da23e9a70c619b4c38","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"72ece739de9af4bd63fd02da23e9a70c619b4c38","size":1681,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fix-path/-/fix-path-2.1.0.tgz","integrity":"sha512-iLiEKMoCjV9anhF6/cx1fz6V8PZsJqjm0gbNytXuuJIgNdsQ0aiPv9CdxpOvQT0B5FAAzMPRYmq/O2kr/CnEOA=="},"maintainers":[{"name":"anonymous","email":"npm@silverwind.io"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fix-path-2.1.0.tgz_1478689567506_0.12310799187980592"},"directories":{},"publish_time":1478689567739,"_hasShrinkwrap":false,"_cnpm_publish_time":1478689567739,"_cnpmcore_publish_time":"2021-12-16T16:07:10.582Z","contributors":[]},"1.0.0":{"name":"fix-path","version":"1.0.0","description":"Fix the $PATH on OS X when run from a GUI app","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/fix-path"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["fix","path","osx","env","var","environment","variable","shell","electron","atom-shell","nwjs"],"devDependencies":{"ava":"0.0.4"},"gitHead":"14e73638e977da4f201c4e5fa9c7dc1e244df57c","bugs":{"url":"https://github.com/sindresorhus/fix-path/issues"},"homepage":"https://github.com/sindresorhus/fix-path","_id":"fix-path@1.0.0","_shasum":"0b7e0d49f8ec592d68e7cd64e3f99cd7400705a0","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"anonymous","email":"npm@silverwind.io"}],"dist":{"shasum":"0b7e0d49f8ec592d68e7cd64e3f99cd7400705a0","size":1617,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fix-path/-/fix-path-1.0.0.tgz","integrity":"sha512-xIySESA4htilLplmO3fQsdW3kVL2Xd06N1za5RP2L4fZTGPpzIw7uhgZ4fja59J1ekiLJRh1wpht8OuygAd6+A=="},"directories":{},"publish_time":1430128819743,"_hasShrinkwrap":false,"_cnpm_publish_time":1430128819743,"_cnpmcore_publish_time":"2021-12-16T16:07:11.265Z","contributors":[]},"5.0.0":{"name":"fix-path","version":"5.0.0","description":"Fix the $PATH on macOS and Linux when run from a GUI app","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/fix-path.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["fix","path","macos","env","environment","variable","shell","sh","zsh","electron"],"dependencies":{"shell-path":"^3.1.0","strip-ansi":"^7.1.2"},"devDependencies":{"ava":"^6.4.1","tsd":"^0.33.0","xo":"^1.2.2"},"_id":"fix-path@5.0.0","gitHead":"ef0745f95a2d0688517a505e1a68ed822a3060eb","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/fix-path/issues"},"homepage":"https://github.com/sindresorhus/fix-path#readme","_nodeVersion":"22.12.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-erEWGGCN7RIu1bXTCfNVpVBdm0f5mwcbeja+4QXiEZzIQukP401sbpu8gd3Ny1vS34YNeswyMO0TdT2tP5OlHA==","shasum":"d1541205d050153d3d91faf85ce1fd6959e48df1","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fix-path/-/fix-path-5.0.0.tgz","fileCount":5,"unpackedSize":3223,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDbh/MA/epEKRA9fLgqqN+5oegCdMrWNqb1EYFmVpMHxAiEAyTA4CVxaakM1PPj/gZC+n0Y/+ouOxevePIKtcKYWI9I="}],"size":1742},"_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"},{"name":"anonymous","email":"npm@silverwind.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fix-path_5.0.0_1757405177505_0.795216129501592"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-09T08:06:17.664Z","publish_time":1757405177664,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"5.0.0"},"name":"fix-path","time":{"created":"2022-01-26T17:19:35.978Z","modified":"2025-09-09T21:27:58.550Z","4.0.0":"2021-08-25T11:36:11.343Z","2.0.0":"2016-04-06T16:35:52.754Z","1.1.0":"2015-04-27T17:50:19.661Z","3.0.0":"2020-02-16T17:09:11.134Z","2.1.0":"2016-11-09T11:06:07.739Z","1.0.0":"2015-04-27T10:00:19.743Z","5.0.0":"2025-09-09T08:06:17.664Z"},"readme":"# fix-path\n\n> Fix the `$PATH` on macOS and Linux when run from a GUI app\n\nUseful for Electron apps as GUI apps on macOS and Linux do not inherit the `$PATH` defined in your dotfiles *(.bashrc/.bash_profile/.zshrc/etc)*.\n\n## Install\n\n```sh\nnpm install fix-path\n```\n\n## Usage\n\n```js\nimport fixPath from 'fix-path';\n\nconsole.log(process.env.PATH);\n//=> '/usr/bin'\n\nfixPath();\n\nconsole.log(process.env.PATH);\n//=> '/usr/local/bin:/usr/bin'\n```\n\n## Related\n\n- [shell-path](https://github.com/sindresorhus/shell-path) - Get the `$PATH` from the shell","users":{}}