{"id":18440245,"url":"https://github.com/drowzy/pico-proxy","last_synced_at":"2025-04-07T21:33:07.140Z","repository":{"id":57323893,"uuid":"45796224","full_name":"drowzy/pico-proxy","owner":"drowzy","description":null,"archived":false,"fork":false,"pushed_at":"2016-03-07T08:37:48.000Z","size":20,"stargazers_count":3,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-07T09:17:05.457Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drowzy.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":"2015-11-08T19:54:21.000Z","updated_at":"2022-03-01T06:42:34.000Z","dependencies_parsed_at":"2022-08-25T21:10:55.310Z","dependency_job_id":null,"html_url":"https://github.com/drowzy/pico-proxy","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drowzy%2Fpico-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drowzy%2Fpico-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drowzy%2Fpico-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drowzy%2Fpico-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drowzy","download_url":"https://codeload.github.com/drowzy/pico-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247732802,"owners_count":20986927,"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-06T06:29:12.152Z","updated_at":"2025-04-07T21:33:02.123Z","avatar_url":"https://github.com/drowzy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pico-proxy [![NPM version][npm-image]][npm-url]\n\u003e Tiny http proxy for interacting with cross-domain APIs without CORS\n\n\n## Install\n\n```sh\n$ npm install -g pico-proxy\n```\n\n\n## Usage\n\n```js\nvar picoProxy = require('pico-proxy');\n\nvar proxy = picoProxy({ target: 'http://api.domain.com' }).listen(3000);\n\n/* All requests to http://127.0.0.1:3000 will be proxied to http://api.domain.com */\n```\n\n## CLI\n\n```\n$ pico-proxy --help\n\nUsage\n  $ pico-proxy \u003ctarget\u003e\n\nOptions\n  --target hostname or ip to the target server, defaults to http://127.0.0.1\n  --port port to listen to for the proxy server, defaults to 8080\n  --protocol protocol used when creating the proxy server, defaults to http\n  --cors if the proxy server should handle CORS requests, defaults to true\n  --allow-headers overrides for Access-Control-Allow-Headers, defaluts to '*'\n  --allow-methods overrides for Access-Control-Allow-Methods, defaults to '*'\n  --allow-request overrides for Access-Control-Allow-request-Methods, defaults to '*'\n\nExamples\n  $ pico-proxy --port 3333 --protocol http --target http://api.hostname.com \n  $ pico-proxy --target http://api.hostname.com --allow-headers \"Content-type,X-Sessioncookie\"\n```\n[npm-image]: https://badge.fury.io/js/pico-proxy.svg\n[npm-url]: https://npmjs.org/package/pico-proxy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrowzy%2Fpico-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrowzy%2Fpico-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrowzy%2Fpico-proxy/lists"}