{"id":19738280,"url":"https://github.com/httptoolkit/mac-system-proxy","last_synced_at":"2025-10-06T17:31:44.586Z","repository":{"id":52956067,"uuid":"373514942","full_name":"httptoolkit/mac-system-proxy","owner":"httptoolkit","description":"Access the Mac system proxy settings from Node.js","archived":false,"fork":false,"pushed_at":"2021-12-10T13:36:26.000Z","size":34,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-15T04:48:50.129Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/httptoolkit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-03T13:21:37.000Z","updated_at":"2024-09-06T04:06:08.000Z","dependencies_parsed_at":"2022-08-24T09:11:11.700Z","dependency_job_id":null,"html_url":"https://github.com/httptoolkit/mac-system-proxy","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httptoolkit%2Fmac-system-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httptoolkit%2Fmac-system-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httptoolkit%2Fmac-system-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httptoolkit%2Fmac-system-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/httptoolkit","download_url":"https://codeload.github.com/httptoolkit/mac-system-proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235538020,"owners_count":19006072,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T01:13:47.146Z","updated_at":"2025-10-06T17:31:44.258Z","avatar_url":"https://github.com/httptoolkit.png","language":"TypeScript","readme":"# Mac-System-Proxy [![Build Status](https://github.com/httptoolkit/mac-system-proxy/workflows/CI/badge.svg)](https://github.com/httptoolkit/mac-system-proxy/actions) [![Available on NPM](https://img.shields.io/npm/v/mac-system-proxy.svg)](https://npmjs.com/package/mac-system-proxy)\n\n\u003e _Part of [HTTP Toolkit](https://httptoolkit.tech): powerful tools for building, testing \u0026 debugging HTTP(S)_\n\nAccess the Mac system proxy settings from Node.js. Use it like so:\n\n```javascript\nimport { getMacSystemProxy } from 'mac-system-proxy';\n\nconst proxy = await getMacSystemProxy();\n```\n\nThe promise from `getMacSystemProxy` resolves to something like:\n\n```json\n{\n    \"ExceptionsList\": [\"localhost\", \"127.0.0.1\"],\n    \"ExcludeSimpleHostnames\": \"1\",\n    \"HTTPEnable\": \"1\",\n    \"HTTPPort\": \"8000\",\n    \"HTTPProxy\": \"127.0.0.1\",\n    \"HTTPSEnable\": \"1\",\n    \"HTTPSPort\": \"8443\",\n    \"HTTPSProxy\": \"127.0.0.1\",\n}\n```\n\nThis just parses and return the values directly from `scutil --proxy`, so you'll still need to interpret them yourself for your application. If `scutil --proxy` is unavailable, fails, or the output can't be parsed, the promise will be rejected.\n\nYou can see the known return values in the TypeScript types [here](https://github.com/httptoolkit/mac-system-proxy/blob/main/src/index.ts#L5). If you're aware of more possible values, please open a PR!","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttptoolkit%2Fmac-system-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhttptoolkit%2Fmac-system-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttptoolkit%2Fmac-system-proxy/lists"}