{"_id":"fix-path","_rev":"18-36a1587c3cabd0be8904d182c1b4df59","name":"fix-path","dist-tags":{"latest":"5.0.0"},"versions":{"1.0.0":{"name":"fix-path","version":"1.0.0","keywords":["fix","path","osx","env","var","environment","variable","shell","electron","atom-shell","nwjs"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"fix-path@1.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/fix-path","bugs":{"url":"https://github.com/sindresorhus/fix-path/issues"},"dist":{"shasum":"0b7e0d49f8ec592d68e7cd64e3f99cd7400705a0","tarball":"https://registry.npmjs.org/fix-path/-/fix-path-1.0.0.tgz","integrity":"sha512-xIySESA4htilLplmO3fQsdW3kVL2Xd06N1za5RP2L4fZTGPpzIw7uhgZ4fja59J1ekiLJRh1wpht8OuygAd6+A==","signatures":[{"sig":"MEUCIAmqDRlT+15N5pBXlBm7yUYdkfLiPDvkXbE23ZIdmdbqAiEAgnqF225v+9kj0pcCArGmglFSig9vAsISMp42PbWqmFU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"0b7e0d49f8ec592d68e7cd64e3f99cd7400705a0","engines":{"node":">=0.10.0"},"gitHead":"14e73638e977da4f201c4e5fa9c7dc1e244df57c","scripts":{"test":"node test.js"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"https://github.com/sindresorhus/fix-path","type":"git"},"_npmVersion":"2.7.4","description":"Fix the $PATH on OS X when run from a GUI app","directories":{},"_nodeVersion":"0.12.2","devDependencies":{"ava":"0.0.4"}},"1.1.0":{"name":"fix-path","version":"1.1.0","keywords":["fix","path","osx","env","var","environment","variable","shell","sh","zsh","electron","atom-shell","nwjs"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"fix-path@1.1.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/fix-path","bugs":{"url":"https://github.com/sindresorhus/fix-path/issues"},"dist":{"shasum":"95ce2c5a8b52e8ca27fe23222ebb09690c6f8d99","tarball":"https://registry.npmjs.org/fix-path/-/fix-path-1.1.0.tgz","integrity":"sha512-e6f/w205ddFUGszTI5gtw+P9czqrKL+C8KOgoepKU7Aro02qC64wzRV1XJW1U2i0kCeU9cuI352EmQM6xz2ghQ==","signatures":[{"sig":"MEUCIEi5wEjI1ckii59RJgbTkXQFTmsTJ667mXerZ1bJG6RWAiEAyUwm2BRp0NBH92qZpEiuiVoMO7VaE6vdrJXWnGk/yHo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"95ce2c5a8b52e8ca27fe23222ebb09690c6f8d99","engines":{"node":">=0.12.0"},"gitHead":"a9d5559dacd9dc08184e1bd9a200756d07c31848","scripts":{"test":"node test.js"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"https://github.com/sindresorhus/fix-path","type":"git"},"_npmVersion":"2.7.4","description":"Fix the $PATH on OS X when run from a GUI app","directories":{},"_nodeVersion":"0.12.2","dependencies":{"shell-path":"^1.0.0"},"devDependencies":{"ava":"0.0.4"}},"2.0.0":{"name":"fix-path","version":"2.0.0","keywords":["fix","path","osx","env","var","environment","variable","shell","sh","zsh","electron","nwjs"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"fix-path@2.0.0","maintainers":[{"name":"silverwind","email":"me@silverwind.io"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/fix-path","bugs":{"url":"https://github.com/sindresorhus/fix-path/issues"},"dist":{"shasum":"f355834d04a59bcba3cda4502e767a8cd8f75e05","tarball":"https://registry.npmjs.org/fix-path/-/fix-path-2.0.0.tgz","integrity":"sha512-aKgeXiXlgywJGAtjhrSqnNC/T/98fEcTiGX7BZGB3Sk7LJ8kyNmpnbyR/W/+tr5YUXrmKEXaeG38T4/fqN+UrQ==","signatures":[{"sig":"MEUCIAkDVduhR8FL0vCEiWiqxya7cjfYgqhfgJaSNcpYb20wAiEAh2LTZ3EBLBJQs+fTSiv9I2AdsgkIEJrThvfHTwLBmAs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"f355834d04a59bcba3cda4502e767a8cd8f75e05","engines":{"node":">=4"},"gitHead":"46301c684b6ccf5f4e1bca3f77404eab4a91a7ed","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"https://github.com/sindresorhus/fix-path","type":"git"},"_npmVersion":"2.14.12","description":"Fix the $PATH on OS X when run from a GUI app","directories":{},"_nodeVersion":"4.3.0","dependencies":{"shell-path":"^2.0.0"},"devDependencies":{"xo":"*","ava":"*"},"_npmOperationalInternal":{"tmp":"tmp/fix-path-2.0.0.tgz_1459960552211_0.5505990979727358","host":"packages-12-west.internal.npmjs.com"}},"2.1.0":{"name":"fix-path","version":"2.1.0","keywords":["fix","path","macos","osx","env","var","environment","variable","shell","sh","zsh","electron","nwjs"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"fix-path@2.1.0","maintainers":[{"name":"silverwind","email":"me@silverwind.io"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/fix-path#readme","bugs":{"url":"https://github.com/sindresorhus/fix-path/issues"},"xo":{"esnext":true},"dist":{"shasum":"72ece739de9af4bd63fd02da23e9a70c619b4c38","tarball":"https://registry.npmjs.org/fix-path/-/fix-path-2.1.0.tgz","integrity":"sha512-iLiEKMoCjV9anhF6/cx1fz6V8PZsJqjm0gbNytXuuJIgNdsQ0aiPv9CdxpOvQT0B5FAAzMPRYmq/O2kr/CnEOA==","signatures":[{"sig":"MEUCIQCwFORRocVcIPdZRd7G1gA/PzptuW0FWw4eZU29PPuOgAIgGBg/Dm32NiOFAGl0Gl4+8YYUjENZ3yZiSugIqAGupaI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"72ece739de9af4bd63fd02da23e9a70c619b4c38","engines":{"node":">=4"},"gitHead":"b9fa7c4ce92507be1bd487e450b2aa06e3f57f0e","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/fix-path.git","type":"git"},"_npmVersion":"2.15.9","description":"Fix the $PATH on macOS when run from a GUI app","directories":{},"_nodeVersion":"4.6.1","dependencies":{"shell-path":"^2.0.0"},"devDependencies":{"xo":"*","ava":"*"},"_npmOperationalInternal":{"tmp":"tmp/fix-path-2.1.0.tgz_1478689567506_0.12310799187980592","host":"packages-12-west.internal.npmjs.com"}},"3.0.0":{"name":"fix-path","version":"3.0.0","keywords":["fix","path","macos","osx","env","environment","variable","shell","sh","zsh","electron"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"fix-path@3.0.0","maintainers":[{"name":"silverwind","email":"me@silverwind.io"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/fix-path#readme","bugs":{"url":"https://github.com/sindresorhus/fix-path/issues"},"dist":{"shasum":"c6b82fd5f5928e520b392a63565ebfef0ddf037e","tarball":"https://registry.npmjs.org/fix-path/-/fix-path-3.0.0.tgz","fileCount":5,"integrity":"sha512-opGAl4+ip5jUikHR2C8Jo7czZ80pz8EK/0gMlAZu7xgDmBqIynlX8SMYg9KowYjAU6HT0nxsSJEWru0u+n+N2Q==","signatures":[{"sig":"MEYCIQCkQ1ZlF2kxPG4zbijBHPommsapEq+pnblriaCfAETOoQIhAPGhsF4nG2Qf1fc9EC7bM94/x+iWo0EC4PzKc3jjN0YT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeSXc3CRA9TVsSAnZWagAAzhYP/RYEfEhsEnncLKN0QBNs\n/nmiI3ROcdtbHccBUk1lfafsoN44d1V7KP2OoTGi3VkDsmsiIgZCMZMj9vtC\nfYIJzBb88V7DBlDZ8lDKoPB0vL0fVDqBTsf0mIrQQdVBYG/GWt3KfEeqRfW5\ns3llVkvDK2PcUlu1g2Amn6aj/y/ryWkPY4keagTCfX3U6Jr48tDMsOD3vtIz\ny+mVWw7+y0HYIVwbAshWxWp2h+qIwxk0Fjr82VcQ31oK7mttPUbDSIAmr7Sq\nJUpx0BvAtRiKCjBU1kmcVkxs5Rg71QifX0R4hC4KBgd86hLPL6bO7M6vhx/7\n+49LsL2MMKDeKRDk+kvBXZQH2dZksBxHu8fZ/RnBm0KHhKfZ9qcZrq6rvijz\nPbjR78uUY6TLv6Le2Im1Ia3i6FueGjDOLbLY9Cjd0XwaPUIQj43P34wJEW77\nm7TqnPDB/fSnb5bkrmpLYLHSOnPgqvrrg46z+Ih9mkMUm8b/Afu+kXYJc6DL\njF/AHVjhx+yrF7EYo7kglMV/xZwv6E0YnYn6yMiHMnsusR8XlClsemYUwPfY\neX2ufVqUktBOP9k7b1VptnASkWHwOhWrm0RONyiSRHlDVROLfHXJHAkcZlMA\nGqgUXvl8NZ/QEM1kpLfrPIWFWFGuTxWeQij+Zm4YTx3mCu9XlpLzTL0T2H2l\nJQTW\r\n=DyCp\r\n-----END PGP SIGNATURE-----\r\n"},"engines":{"node":">=10"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"8f12bec72ee4319638a43758b40d61c25427404b","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/fix-path.git","type":"git"},"_npmVersion":"6.12.1","description":"Fix the $PATH on macOS when run from a GUI app","directories":{},"_nodeVersion":"13.1.0","dependencies":{"shell-path":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.26.1","ava":"^1.4.1","tsd":"^0.11.0"},"_npmOperationalInternal":{"tmp":"tmp/fix-path_3.0.0_1581872950972_0.4878921353630863","host":"s3://npm-registry-packages"}},"4.0.0":{"name":"fix-path","version":"4.0.0","keywords":["fix","path","macos","env","environment","variable","shell","sh","zsh","electron"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"fix-path@4.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"silverwind","email":"npm@silverwind.io"}],"homepage":"https://github.com/sindresorhus/fix-path#readme","bugs":{"url":"https://github.com/sindresorhus/fix-path/issues"},"dist":{"shasum":"bc1d14f038edb734ac46944a45454106952ca429","tarball":"https://registry.npmjs.org/fix-path/-/fix-path-4.0.0.tgz","fileCount":5,"integrity":"sha512-g31GX207Tt+psI53ZSaB1egprYbEN0ZYl90aKcO22A2LmCNnFsSq3b5YpoKp3E/QEiWByTXGJOkFQG4S07Bc1A==","signatures":[{"sig":"MEUCIElERk1IP26re4b3cYNRMj7E4vngluutoxQckJ0sx3RVAiEAjy9EADDeiOD+AuZulEWuibIssHr48sRe3tEdNpP81UM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3055,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJisrCRA9TVsSAnZWagAAClQP/0Op+Z1EqGI+J14EWlBE\n9Esb7fhuj25c1/kLwuJzQlTSAZl1YbVvaov3K3GZoX8wgstGz1fEr8mAG0nC\nTZmW8KGLuhp1eHGPjih8sit01ROS4PpYVWz9ffHhz4GEVSCGBQFqvO36KM61\ntNO/Xs93tCf6cjD54V8AJs5xFOSlseu+N42nJBdFvKuPLtE+RXcHMR+QtdNa\n7Dft4v4+mFXGUSDoVvNcDplmq10HTpDBkpg9rGMPzS79RKo29IiMygJignmb\n8Hp5SdiDhHzBlA0zdRwgt/Y7bu2qoaGZ9ka4aI67q63A7tOqI+zxYxwT/qWq\nIBokjnPYksnBWk7jFtVPko/nNdNtpyODzil8pocSYipHnWWc9QBGxCrw16OS\nokf5g1ogdUra78eQAWeAOlyR1qBHbYWMndGjDNCNBjiHQfQmkMz/7HzhRB5F\nDQkw2gI1FDWfeWuHOnnzmV57SOeIt1siz0BqD59OVTL+84NwQ3nuSLFs0/r5\nCOaoHYrCn7uere+UE46lfQfyzgYjDfb0U0Mt4G/g0xgQ9SWydfaklZ8zcMYQ\nzWjgiM5v6LSNfU39UxRaVMiNMPTBRmkO+Taj5wnnZUBnKPyWiQxCap+2q+DZ\naMRwdEd0jJFNLUVV2vjwkfYfCkBiHf+SmTgxtfF4LNzAgSpDQSspnwwuBmLM\nLYwg\r\n=XK0S\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"exports":"./index.js","funding":"https://github.com/sponsors/sindresorhus","gitHead":"40d974dc08bc6e83a980f577d07b2b4206f37dba","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/fix-path.git","type":"git"},"_npmVersion":"7.20.3","description":"Fix the $PATH on macOS and Linux when run from a GUI app","directories":{},"_nodeVersion":"16.7.0","dependencies":{"shell-path":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.44.0","ava":"^3.15.0","tsd":"^0.17.0"},"_npmOperationalInternal":{"tmp":"tmp/fix-path_4.0.0_1629891371223_0.40354634632246555","host":"s3://npm-registry-packages"}},"5.0.0":{"name":"fix-path","version":"5.0.0","keywords":["fix","path","macos","env","environment","variable","shell","sh","zsh","electron"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"fix-path@5.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"silverwind","email":"npm@silverwind.io"}],"homepage":"https://github.com/sindresorhus/fix-path#readme","bugs":{"url":"https://github.com/sindresorhus/fix-path/issues"},"dist":{"shasum":"d1541205d050153d3d91faf85ce1fd6959e48df1","tarball":"https://registry.npmjs.org/fix-path/-/fix-path-5.0.0.tgz","fileCount":5,"integrity":"sha512-erEWGGCN7RIu1bXTCfNVpVBdm0f5mwcbeja+4QXiEZzIQukP401sbpu8gd3Ny1vS34YNeswyMO0TdT2tP5OlHA==","signatures":[{"sig":"MEUCIDbh/MA/epEKRA9fLgqqN+5oegCdMrWNqb1EYFmVpMHxAiEAyTA4CVxaakM1PPj/gZC+n0Y/+ouOxevePIKtcKYWI9I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3223},"type":"module","types":"./index.d.ts","engines":{"node":">=20"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"ef0745f95a2d0688517a505e1a68ed822a3060eb","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/fix-path.git","type":"git"},"_npmVersion":"10.9.2","description":"Fix the $PATH on macOS and Linux when run from a GUI app","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"shell-path":"^3.1.0","strip-ansi":"^7.1.2"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^1.2.2","ava":"^6.4.1","tsd":"^0.33.0"},"_npmOperationalInternal":{"tmp":"tmp/fix-path_5.0.0_1757405177505_0.795216129501592","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2015-04-27T10:00:19.743Z","modified":"2025-09-09T21:27:45.508Z","1.0.0":"2015-04-27T10:00:19.743Z","1.1.0":"2015-04-27T17:50:19.661Z","2.0.0":"2016-04-06T16:35:52.754Z","2.1.0":"2016-11-09T11:06:07.739Z","3.0.0":"2020-02-16T17:09:11.134Z","4.0.0":"2021-08-25T11:36:11.343Z","5.0.0":"2025-09-09T08:06:17.664Z"},"bugs":{"url":"https://github.com/sindresorhus/fix-path/issues"},"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","homepage":"https://github.com/sindresorhus/fix-path#readme","keywords":["fix","path","macos","env","environment","variable","shell","sh","zsh","electron"],"repository":{"url":"git+https://github.com/sindresorhus/fix-path.git","type":"git"},"description":"Fix the $PATH on macOS and Linux when run from a GUI app","maintainers":[{"email":"sindresorhus@gmail.com","name":"sindresorhus"}],"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\n","readmeFilename":"readme.md","users":{"qddegtya":true,"sbruchmann":true,"flumpus-dev":true}}