{"id":18821384,"url":"https://github.com/borderless/fetch-cors","last_synced_at":"2026-01-18T06:30:17.646Z","repository":{"id":46469882,"uuid":"270132688","full_name":"borderless/fetch-cors","owner":"borderless","description":"CORS middleware for fetch-based routers","archived":false,"fork":false,"pushed_at":"2023-12-12T06:27:53.000Z","size":722,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T18:48:32.871Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/borderless.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-06-06T23:23:04.000Z","updated_at":"2021-10-10T02:53:50.000Z","dependencies_parsed_at":"2023-12-27T00:22:21.297Z","dependency_job_id":"76f2e0b0-0d7a-4fac-88e5-cd7769315a9a","html_url":"https://github.com/borderless/fetch-cors","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":0.2727272727272727,"last_synced_commit":"f5206bfe5a47b0c91588980fb0ed71a07d5bf2d5"},"previous_names":["borderlesslabs/fetch-cors"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borderless%2Ffetch-cors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borderless%2Ffetch-cors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borderless%2Ffetch-cors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borderless%2Ffetch-cors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borderless","download_url":"https://codeload.github.com/borderless/fetch-cors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239758900,"owners_count":19692041,"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-08T00:40:03.611Z","updated_at":"2025-02-20T01:14:08.821Z","avatar_url":"https://github.com/borderless.png","language":"TypeScript","readme":"# Fetch CORS\n\n[![NPM version][npm-image]][npm-url]\n[![NPM downloads][downloads-image]][downloads-url]\n[![Build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n\n\u003e CORS middleware for [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)-based router.\n\n## Installation\n\n```sh\nnpm install @borderless/fetch-cors --save\n```\n\n## Usage\n\n```js\nimport { compose } from \"throwback\";\nimport { cors } from \"@borderless/fetch-cors\";\nimport { get } from \"@borderless/fetch-router\";\n\nconst app = compose([cors(), get(\"/test\", () =\u003e new Response(\"hello world\"))]);\n```\n\n## TypeScript\n\nThis project is written using [TypeScript](https://github.com/Microsoft/TypeScript) and publishes the definitions directly to NPM.\n\n## License\n\nMIT\n\n[npm-image]: https://img.shields.io/npm/v/@borderless/fetch-cors.svg?style=flat\n[npm-url]: https://npmjs.org/package/@borderless/fetch-cors\n[downloads-image]: https://img.shields.io/npm/dm/@borderless/fetch-cors.svg?style=flat\n[downloads-url]: https://npmjs.org/package/@borderless/fetch-cors\n[travis-image]: https://img.shields.io/travis/BorderlessLabs/fetch-cors.svg?style=flat\n[travis-url]: https://travis-ci.org/BorderlessLabs/fetch-cors\n[coveralls-image]: https://img.shields.io/coveralls/BorderlessLabs/fetch-cors.svg?style=flat\n[coveralls-url]: https://coveralls.io/r/BorderlessLabs/fetch-cors?branch=master\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborderless%2Ffetch-cors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborderless%2Ffetch-cors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborderless%2Ffetch-cors/lists"}