{"id":14990061,"url":"https://github.com/sebastianlzy/superagent-debugger","last_synced_at":"2025-04-12T02:03:57.600Z","repository":{"id":57374693,"uuid":"79720312","full_name":"sebastianlzy/superagent-debugger","owner":"sebastianlzy","description":"A simple debugging log for superagent","archived":false,"fork":false,"pushed_at":"2017-06-21T17:20:58.000Z","size":494,"stargazers_count":14,"open_issues_count":1,"forks_count":9,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-12T02:03:52.207Z","etag":null,"topics":["debug","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sebastianlzy.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}},"created_at":"2017-01-22T13:46:34.000Z","updated_at":"2021-02-04T06:13:36.000Z","dependencies_parsed_at":"2022-08-29T21:01:48.885Z","dependency_job_id":null,"html_url":"https://github.com/sebastianlzy/superagent-debugger","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianlzy%2Fsuperagent-debugger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianlzy%2Fsuperagent-debugger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianlzy%2Fsuperagent-debugger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianlzy%2Fsuperagent-debugger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebastianlzy","download_url":"https://codeload.github.com/sebastianlzy/superagent-debugger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505863,"owners_count":21115354,"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":["debug","superagent"],"created_at":"2024-09-24T14:19:24.085Z","updated_at":"2025-04-12T02:03:57.568Z","avatar_url":"https://github.com/sebastianlzy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Log For Super Agent \n\n[![Build Status](https://travis-ci.org/sebastianlzy/superagent-debugger.svg?branch=master)](https://travis-ci.org/sebastianlzy/superagent-debugger)\n[![Coverage Status](https://coveralls.io/repos/github/sebastianlzy/superagent-debugger/badge.svg)](https://coveralls.io/github/sebastianlzy/superagent-debugger)\n\n### Introduction\nAn easy and fast way to identify and replicate rogue request on the fly \n\n### Dependencies\nLogging and debugging for [superagent](https://github.com/visionmedia/superagent)\n\n-----------\n### Install\n\n```cli\nnpm install --save superagent-debugger\n```\n\n### Usage\n\n```js\nlet superagent = require('superagent');\nlet superdebug = require('superagent-debugger');\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-debug,super-curl node sdk.js\n ```\n![screeshot1](https://raw.githubusercontent.com/sebastianlzy/superagent-debugger/master/sample-log.jpg)\n\n### options\n\n```js\nconst options = {logName: 'logDebug', curlName: 'curlDebug'}\n    \n superagent('GET', 'http://localhost:3000/debug')\n     .set({Accept: 'application/json'})\n     .query({superdebug: 'is-awesome'})\n     .use(superdebug(console.info, options))\n```\n\n```\nDEBUG=logDebug,curlDebug node sdk.js\n```\n\n### Help\nRefer to the example provided\n\n### Improvement\n\n1. [x] Test/Test coverage report\n2. [ ] CI/CD process\n3. [ ] Allow debug for client side request\n\nAny feedbacks or contributions are welcome!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianlzy%2Fsuperagent-debugger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastianlzy%2Fsuperagent-debugger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianlzy%2Fsuperagent-debugger/lists"}