{"id":16890624,"url":"https://github.com/koenpunt/superagent-use","last_synced_at":"2025-09-07T18:32:26.813Z","repository":{"id":57148784,"uuid":"52534888","full_name":"koenpunt/superagent-use","owner":"koenpunt","description":"Global plugin support for SuperAgent","archived":false,"fork":false,"pushed_at":"2018-01-31T07:10:40.000Z","size":6,"stargazers_count":36,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-15T02:51:29.476Z","etag":null,"topics":["middleware","superagent"],"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/koenpunt.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":"2016-02-25T15:21:06.000Z","updated_at":"2022-07-29T08:30:29.000Z","dependencies_parsed_at":"2022-08-31T23:50:45.562Z","dependency_job_id":null,"html_url":"https://github.com/koenpunt/superagent-use","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koenpunt%2Fsuperagent-use","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koenpunt%2Fsuperagent-use/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koenpunt%2Fsuperagent-use/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koenpunt%2Fsuperagent-use/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koenpunt","download_url":"https://codeload.github.com/koenpunt/superagent-use/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231570304,"owners_count":18394111,"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":["middleware","superagent"],"created_at":"2024-10-13T17:03:44.731Z","updated_at":"2025-01-02T18:58:02.171Z","avatar_url":"https://github.com/koenpunt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# superagent-use [![Build Status](https://travis-ci.org/koenpunt/superagent-use.svg?branch=master)](https://travis-ci.org/koenpunt/superagent-use)\n\nGlobal plugin support for [SuperAgent](https://github.com/visionmedia/superagent/).\n\n## Summary\n\nInstead of manually calling `use()` for every request, `use()` is called automatically for every request.\n\n## Example\n\n```js\n/* The superagent-use module returns a clone of the superagent provided with the new functionality. */\nvar agent = require('superagent-use')(require('superagent'));\n/* A sample superagent plugin/middleware. */\nvar prefix = require('superagent-prefix');\n\nagent.use(prefix('https://api.example.com'));\n\nagent\n  .post('/auth')\n  .send({user: 'foo', pass: 'bar123'})\n  .on('request', function(req) {\n    console.log(req.url); // =\u003e https://api.example.com/auth\n  })\n  .end(function(err, res) {\n    //\n  });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoenpunt%2Fsuperagent-use","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoenpunt%2Fsuperagent-use","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoenpunt%2Fsuperagent-use/lists"}