{"_id":"os-proxy-config","_rev":"6-273e3f5190d30bf5a43f6122681982b2","name":"os-proxy-config","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"os-proxy-config","version":"1.0.0","keywords":["mac","osx","windows","linux","system","proxy","proxies","pac","http","socks","config","configuration"],"author":{"name":"Tim Perry","email":"tim@httptoolkit.tech"},"license":"Apache-2.0","_id":"os-proxy-config@1.0.0","maintainers":[{"name":"pimterry","email":"pimterry@gmail.com"}],"homepage":"https://github.com/httptoolkit/os-proxy-config#readme","bugs":{"url":"https://github.com/httptoolkit/os-proxy-config/issues"},"dist":{"shasum":"99e651f9a310bb9650af1a804895fc618d0a1df9","tarball":"https://registry.npmjs.org/os-proxy-config/-/os-proxy-config-1.0.0.tgz","fileCount":7,"integrity":"sha512-F7O3sLcS6aTsr2sXNDb7JwZbicMB+sXA1dooDjt6NTUeX5xwtVNL8k14VQrz6KUvP0FjPCbumDVxBPAVl9Aj7A==","signatures":[{"sig":"MEYCIQDm4uXFYj5CXjlAAvau1epvbNKIXRvmKTOwwmBm+Z0G4wIhAM7flA6szpECUI2OUe5VMAs0F3RloFbk69E2/ExLxF6i","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22465,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgukwaCRA9TVsSAnZWagAA0+0P/2aD7xevE3CLBnNgDgyz\nA0ZOxEizvfNOxsaio5oGzWwxL6axDteq56JLi4Bev2YIMctIoqT0qRgUMJn0\n+eJLRyJ40DN1KzrgKYZYMbpUPub/N4rHokiLKM4p2ay21H8xkRjodqVlkvOh\nhZrHvo4FyZqGuvHfsuOwAZ/ecj0g9u+RoYHpbuIyfOP6Lbw5JGcQU49iNvxU\nF2Pk5ZsPrKMNgwTljIDmaVpquJeNklOvznvbrvA/qbR+Iy1E/wirU3KYTOup\nw0VWRVDAZbqSdAfym7MOA5pQJby7bzHTZPVTUPQB4i5dKmNni31y7ndIZQCh\nRd/r/PRv59t0Zqqvk1TS9Gyf+zZIVPbEWEncu7zIheYUQonZwxIokCo6O4ka\nVTJbmdAyXpsMx/Nul20wv+85RKGrVoy6oTZ7Htx94k2r03bE5kRT+VyqYuX7\noR3+qb9BM/8be4H87rmcL1bMwRuY77vSwrBDm01b2svB8G+PAfKVFo6/azPX\nuosG2ifmhOsrfdc6u4kIn3OnD8gwq3oNlnUCVi2FnfFdfi6Axhg2Eb3AYdIr\nJRwFMewDovMRn0u7PDJDwk168V1e4QAymBfwwusNH61ahOr1Fdc4FomqIpMA\nNVZ04rW07VGlnhmLfjd/ClwxBFljouAduA2PE/um1Atciam6rGIC9o6OIEPN\nbc2d\r\n=T3Zw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","gitHead":"aa66155574d5f11a3dfffd9b06aa9b286d847979","scripts":{"test":"cross-env TS_NODE_FILES=true mocha -r ts-node/register 'test/*.spec.ts'","build":"tsc -p .","pretest":"npm run build"},"_npmUser":{"name":"pimterry","email":"pimterry@gmail.com"},"repository":{"url":"git+https://github.com/httptoolkit/os-proxy-config.git","type":"git"},"_npmVersion":"6.14.13","description":"Access the operating system proxy configuration from Node.js, for all platforms","directories":{},"_nodeVersion":"14.17.0","dependencies":{"mac-system-proxy":"^1.0.0","@cypress/get-windows-proxy":"^1.6.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.4","mocha":"^8.4.0","ts-node":"^10.0.0","cross-env":"^7.0.3","typescript":"^4.3.2","@types/chai":"^4.2.18","@types/node":"^15.9.0","@types/mocha":"^8.2.2"},"_npmOperationalInternal":{"tmp":"tmp/os-proxy-config_1.0.0_1622821914001_0.949362027030092","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"os-proxy-config","version":"1.1.1","keywords":["mac","osx","windows","linux","system","proxy","proxies","pac","http","socks","config","configuration"],"author":{"name":"Tim Perry","email":"tim@httptoolkit.tech"},"license":"Apache-2.0","_id":"os-proxy-config@1.1.1","maintainers":[{"name":"pimterry","email":"pimterry@gmail.com"}],"homepage":"https://github.com/httptoolkit/os-proxy-config#readme","bugs":{"url":"https://github.com/httptoolkit/os-proxy-config/issues"},"dist":{"shasum":"893f822ef69c7cd6fad60476fc90be62105da7a6","tarball":"https://registry.npmjs.org/os-proxy-config/-/os-proxy-config-1.1.1.tgz","fileCount":7,"integrity":"sha512-dWQwqUUk0LJIYDxVonC47ARjXTZfsRzgYPQQd3/o8UlkY4G5QF9NYNujE+TJUGsbGbkACRjFwA0HA5yb5gdwWA==","signatures":[{"sig":"MEYCIQCzIUkI5k3aufc0Gn5MYJ1mvFEU40XBEmP3fmSqI3CEBAIhAK9XVCnLgOFbtPVeBDlK380ltK6HFAxeXEqruix4lKkT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21593,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwlPNCRA9TVsSAnZWagAAhBkQAKAordGazMQUXqn0+2gf\naXHwp6IvxriZLc5KoQ8dtcNrdTBdLVEFyfjOf1/9uiUv3SOxX/oZiu0dFawN\nOKHxKPSzpG1nGSvyuCL0RmzskXJG0gJfCCca1EdRkEA+JP5SVO7os2nvm3Ew\nwID+BGafsNBUDvFV06JpEQppkkiBbvooyGjEZXbj0HOVTmI0bSk2UHSUpA47\nbsTFjs3TiKHCynaOsyKnJjBu0D4x0y/Yu0BWnXkLZc/1vEDqda62hVh0cC/E\n1WMXUF1aOzQBODrnOY7oIRziD6wDNiBj2cxe/z/eCao5DxMT6Eicvn2mhSlH\nn+K/BMv0EjWTgrOgcdtquqmYxrwhIIYpZxraUThXvvlMpeGPjAdqMMOwm58Z\n+9g2DTr/hKhfOFHf0hmvAK6XHdK9prDeC1sm0O+/Sc4gtA+eaXiLNkKqJpsb\np9ZGrJBzjXDXua+3o8yGtVZbYp7fjKNPpXaMro+8sz7a8cDZ8IW0VSrjKH0x\nNXq7C1l0fKv0AGkOw4ZZqd6cjrNQ2qL7Xx6hFDYxRjIEwQur+9BwZLJ5envP\n1IYACExEQkEXVGHXWYeEXRYzJIqvhDIhfoNKDhHZVPfQ0Eg1oMlKQM+4mshp\nCxX9VTq0DdXtXvAiHYzTVOK6f2AtXKleD77aseXZYwAbb1XYLpSr5cv++45E\nX6pP\r\n=Zd4T\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","gitHead":"0c8243b457c0c31103bd12c6ba84383d45c162b6","scripts":{"test":"cross-env TS_NODE_FILES=true mocha -r ts-node/register 'test/*.spec.ts'","build":"tsc -p .","pretest":"npm run build"},"_npmUser":{"name":"pimterry","email":"pimterry@gmail.com"},"repository":{"url":"git+https://github.com/httptoolkit/os-proxy-config.git","type":"git"},"_npmVersion":"6.14.13","description":"Access the operating system proxy configuration from Node.js, for all platforms","directories":{},"_nodeVersion":"14.17.0","dependencies":{"mac-system-proxy":"^1.0.0","windows-system-proxy":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.4","mocha":"^8.4.0","ts-node":"^10.0.0","cross-env":"^7.0.3","typescript":"^4.3.2","@types/chai":"^4.2.18","@types/node":"^15.9.0","@types/mocha":"^8.2.2"},"_npmOperationalInternal":{"tmp":"tmp/os-proxy-config_1.1.1_1623348173564_0.6927412587236306","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"os-proxy-config","version":"1.1.2","description":"Access the operating system proxy configuration from Node.js, for all platforms","main":"dist/index.js","scripts":{"build":"tsc -p .","pretest":"npm run build","test":"cross-env TS_NODE_FILES=true mocha -r ts-node/register 'test/*.spec.ts'"},"repository":{"type":"git","url":"git+https://github.com/httptoolkit/os-proxy-config.git"},"keywords":["mac","osx","windows","linux","system","proxy","proxies","pac","http","socks","config","configuration"],"author":{"name":"Tim Perry","email":"tim@httptoolkit.tech"},"license":"Apache-2.0","bugs":{"url":"https://github.com/httptoolkit/os-proxy-config/issues"},"homepage":"https://github.com/httptoolkit/os-proxy-config#readme","devDependencies":{"@types/chai":"^4.2.18","@types/mocha":"^8.2.2","@types/node":"^22.14.1","chai":"^4.3.4","cross-env":"^7.0.3","mocha":"^8.4.0","ts-node":"^10.0.0","typescript":"^4.3.2"},"dependencies":{"mac-system-proxy":"^1.0.0","windows-system-proxy":"^1.0.0"},"_id":"os-proxy-config@1.1.2","gitHead":"9f9c637b4b10f2517db2e895bafe24e6e82ef3c7","types":"./dist/index.d.ts","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-sV7htE8y6NQORU0oKOUGTwQYe1gSFK3a3Z1i4h6YaqdrA9C0JIsUPQAqEkO8ejjYbRrQ+jsnks5qjtisr7042Q==","shasum":"0b6b0d07ddfceb907dd9c270797e286205f76ef8","tarball":"https://registry.npmjs.org/os-proxy-config/-/os-proxy-config-1.1.2.tgz","fileCount":7,"unpackedSize":21612,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCqNLs05IcsyES6XEecC8X8y96bJkHyuGWgnz/83m3bHgIhAMBy6DlprychTfIHOuTrmFLe7IAmGayeGBWka9mnsNqn"}]},"_npmUser":{"name":"pimterry","email":"pimterry@gmail.com"},"directories":{},"maintainers":[{"name":"pimterry","email":"pimterry@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/os-proxy-config_1.1.2_1745417087250_0.3840352738353179"},"_hasShrinkwrap":false}},"time":{"created":"2021-06-04T15:51:54.000Z","modified":"2025-04-23T14:04:47.659Z","1.0.0":"2021-06-04T15:51:54.131Z","1.1.0":"2021-06-10T17:48:24.064Z","1.1.1":"2021-06-10T18:02:53.713Z","1.1.2":"2025-04-23T14:04:47.443Z"},"bugs":{"url":"https://github.com/httptoolkit/os-proxy-config/issues"},"author":{"name":"Tim Perry","email":"tim@httptoolkit.tech"},"license":"Apache-2.0","homepage":"https://github.com/httptoolkit/os-proxy-config#readme","keywords":["mac","osx","windows","linux","system","proxy","proxies","pac","http","socks","config","configuration"],"repository":{"type":"git","url":"git+https://github.com/httptoolkit/os-proxy-config.git"},"description":"Access the operating system proxy configuration from Node.js, for all platforms","maintainers":[{"name":"pimterry","email":"pimterry@gmail.com"}],"readme":"# OS-Proxy-Config [![Build Status](https://github.com/httptoolkit/os-proxy-config/workflows/CI/badge.svg)](https://github.com/httptoolkit/os-proxy-config/actions) [![Available on NPM](https://img.shields.io/npm/v/os-proxy-config.svg)](https://npmjs.com/package/os-proxy-config)\n\n> _Part of [HTTP Toolkit](https://httptoolkit.tech): powerful tools for building, testing & debugging HTTP(S)_\n\nAccess the operating system proxy configuration from Node.js, for all platforms. Use it like so:\n\n```javascript\nimport { getSystemProxy } from 'os-proxy-config';\n\nconst proxy = await getSystemProxy();\n```\n\nThe promise from `getSystemProxy` resolves to something like:\n\n```json\n{\n    \"proxyUrl\": \"https://proxy-server:123/\",\n    \"noProxy\": [\"localhost\", \"example.com\"]\n}\n```\n\nThe proxyUrl is returned in a format suitable for use with [proxy-agent](https://www.npmjs.com/package/proxy-agent): it might be an HTTP or HTTPS URL (for an HTTP proxy), a `socks://` or `socks5://` URL for SOCKS proxies, or a `pac+http://` URL (or similar) with the address of a PAC file for PAC-configured proxies.\n\nIf there's no proxy configured, it will resolve to `undefined` instead. If something major goes wrong and the settings can't be detected, the promise will be rejected.\n\nThis works slightly differently on each platform:\n\n* On Windows it uses [windows-system-proxy](https://www.npmjs.com/package/windows-system-proxy), which reads proxy configuration from the registry using [registry-js](https://www.npmjs.com/package/registry-js).\n* On Mac it uses [mac-system-proxy](https://github.com/httptoolkit/mac-system-proxy), which reads proxy configuration using the `scutil` command-line tool.\n* On Linux it parses the various *_PROXY environment variables.\n\nIf you only need one platform, it's probably better to just use one of these approaches directly - this package is designed for use in cross-platform tools.","readmeFilename":"README.md"}