{"id":25175043,"url":"https://github.com/mediafellows/superdebug","last_synced_at":"2025-08-24T18:37:56.551Z","repository":{"id":114546611,"uuid":"252699714","full_name":"mediafellows/superdebug","owner":"mediafellows","description":"A simple debugging log for superagent","archived":false,"fork":false,"pushed_at":"2020-04-06T14:12:55.000Z","size":578,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-04T00:44:44.651Z","etag":null,"topics":["fork","library","tooling"],"latest_commit_sha":null,"homepage":"https://github.com/andineck/superdebug","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mediafellows.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-04-03T10:23:07.000Z","updated_at":"2020-04-08T12:07:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"d287a123-b87f-47f9-b1b9-84cc30c9496d","html_url":"https://github.com/mediafellows/superdebug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mediafellows/superdebug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mediafellows%2Fsuperdebug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mediafellows%2Fsuperdebug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mediafellows%2Fsuperdebug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mediafellows%2Fsuperdebug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mediafellows","download_url":"https://codeload.github.com/mediafellows/superdebug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mediafellows%2Fsuperdebug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271923417,"owners_count":24844237,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["fork","library","tooling"],"created_at":"2025-02-09T12:28:43.483Z","updated_at":"2025-08-24T18:37:56.531Z","avatar_url":"https://github.com/mediafellows.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Debug Superagent Requests - generates curl output\n\n- logging for [superagent](https://github.com/visionmedia/superagent)\n- logs in curl format\n- let's you copy\u0026paste the curl output to send to someone else\n- works with node.js and in the browser with browserify or webpack\n- only dependency is [debug](https://github.com/visionmedia/debug)\n- works with sent `data` and `formData`\n\n-----------\n### Install\n\n```cli\nnpm i -S superdebug\n```\n\n### Usage\n\n```js\nlet superagent = require('superagent');\nlet superdebug = require('superdebug');\n\nsuperagent('GET', 'http://localhost:3000/debug')\n    .set({Accept: 'application/json'})\n    .query({superdebug: 'is-awesome'})\n    .use(superdebug(console.info))\n    .timeout(10000)\n    .send()\n    .end()\n```\n\n### Output Log\n```log\nsuper-curl curl -v -X GET -H 'User-Agent: node-superagent/3.3.2' -H 'Accept: application/json' http://localhost:3000/debug?superdebug=is-awesome +0ms\nsuper-debug HTTP GET 200 http://localhost:3000/debug?superdebug=is-awesome (23ms) +25ms\n```\n\n### Using Debug\n ```\n DEBUG=super-* node test/test-server.js\n ```\n![superdebug-1](https://raw.githubusercontent.com/andineck/superdebug/master/superdebug-1.png)\n\noutput with json data\n\n![superdebug-2](https://raw.githubusercontent.com/andineck/superdebug/master/superdebug-2.png)\n\n### Options\n\n- you can call `superdebug()` without arguments -\u003e produces only log output with set `DEBUG` environment variable: \n  - examples: `DEBUG=super-curl` or `DEBUG=super-debug`\n- or you can call `superdebug(console.info)` with your preferred logger e.g. `console.info`\n\n```js    \nsuperagent('GET', 'http://localhost:3000/debug')\n  .use(superdebug())\n```\n\n### Test\n\nrun: \n```sh\nnpm test\n```\n\n### License\n\nMIT\n\n### Credits\n\n- https://github.com/sebastianlzy/superagent-debugger","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmediafellows%2Fsuperdebug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmediafellows%2Fsuperdebug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmediafellows%2Fsuperdebug/lists"}