{"id":18336375,"url":"https://github.com/launchpadlab/lp-requests","last_synced_at":"2025-04-09T19:55:42.134Z","repository":{"id":22598054,"uuid":"91833769","full_name":"LaunchPadLab/lp-requests","owner":"LaunchPadLab","description":"Request helpers.","archived":false,"fork":false,"pushed_at":"2025-03-11T19:46:45.000Z","size":234,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":21,"default_branch":"main","last_synced_at":"2025-04-09T19:55:37.419Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/LaunchPadLab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-19T18:20:16.000Z","updated_at":"2021-12-17T18:52:36.000Z","dependencies_parsed_at":"2024-06-21T17:32:11.985Z","dependency_job_id":null,"html_url":"https://github.com/LaunchPadLab/lp-requests","commit_stats":{"total_commits":50,"total_committers":6,"mean_commits":8.333333333333334,"dds":0.24,"last_synced_commit":"5248bb30c1c1607c76e085c9194fd71e56fb52c3"},"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaunchPadLab%2Flp-requests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaunchPadLab%2Flp-requests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaunchPadLab%2Flp-requests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaunchPadLab%2Flp-requests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LaunchPadLab","download_url":"https://codeload.github.com/LaunchPadLab/lp-requests/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103911,"owners_count":21048245,"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-05T20:07:44.530Z","updated_at":"2025-04-09T19:55:42.113Z","avatar_url":"https://github.com/LaunchPadLab.png","language":"JavaScript","readme":"[![NPM version](https://img.shields.io/npm/v/@launchpadlab/lp-requests.svg?style=flat-square)](https://www.npmjs.com/package/@launchpadlab/lp-requests)\n\n# lp-requests\n\nPromise-based helpers for making HTTP requests.\n\n```js\nimport { api, configureApi } from '@launchpadlab/lp-requests'\n\n// Make a request\napi\n  .get('/user', { query: { id: 1 } })\n  .then((response) =\u003e {\n    // handle success\n  })\n  .catch((error) =\u003e {\n    // handle error\n  })\n\n// Configure defaults\nconst externalApi = configureApi({\n  root: 'https://my-external-api/',\n  mode: 'cors',\n})\n\nexternalApi.get('/user', { query: { id: 1 } })\n// -\u003e makes a request to https://my-external-api/user?id=1\n```\n\nA full list of available request options may be found in the [documentation](#documentation).\n\n## Relation to axios\n\n`lp-requests` serves the exact same function as [axios](https://github.com/axios/axios)- that is, it provides a thin wrapper around the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). Once `axios` has become appropriately stable, it may be used as a replacement for `lp-requests`.\n\n## Documentation\n\nDocumentation and usage info can be found in [docs.md](docs.md).\n\n## Migration Guides\n\n- [v4.0.0](migration-guides/v4.0.0.md)\n\n## Contribution\n\nThis package follows the Opex [NPM package guidelines](https://github.com/LaunchPadLab/opex/blob/master/gists/npm-package-guidelines.md). Please refer to the linked document for information on contributing, testing and versioning.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchpadlab%2Flp-requests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaunchpadlab%2Flp-requests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchpadlab%2Flp-requests/lists"}