{"id":15497425,"url":"https://github.com/heapwolf/netpeek","last_synced_at":"2025-06-10T16:10:35.061Z","repository":{"id":7675109,"uuid":"9037540","full_name":"heapwolf/netpeek","owner":"heapwolf","description":"this is stupid, dont use it, its just an experiment.","archived":false,"fork":false,"pushed_at":"2013-03-26T19:45:00.000Z","size":132,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-18T14:49:15.993Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heapwolf.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":"2013-03-26T18:40:58.000Z","updated_at":"2019-07-08T19:09:18.000Z","dependencies_parsed_at":"2022-09-13T13:03:41.080Z","dependency_job_id":null,"html_url":"https://github.com/heapwolf/netpeek","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fnetpeek","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fnetpeek/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fnetpeek/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fnetpeek/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heapwolf","download_url":"https://codeload.github.com/heapwolf/netpeek/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fnetpeek/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259106720,"owners_count":22805941,"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-10-02T08:33:40.646Z","updated_at":"2025-06-10T16:10:35.038Z","avatar_url":"https://github.com/heapwolf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\nnetpeek(3)\n\n# SYNOPSIS\nFind out how many bytes get sent over the network without using `c++`.\n\n# USAGE\nNetpeek can also take an option `{ aggregate: true }` if you want to add all the\nbytes together instead of emitting them each time data is collected. Once Netpeek\nis required, it will start collecting data from anywhere in your application.\n\n```js\nvar netpeek = require('../../netpeek')();\nvar assert = require('assert');\n\nrequire('./test/tests/http-request-aggregate');\n\nnetpeek.on('data', function(data) {\n  console.log(data);\n});\n```\n\n# EXAMPLES\nOutput data is json.\n```json\n{ \n  \"httpParseCount\": 2,\n  \"bytesRead\": 3423,\n  \"bytesDispatched\": 496\n}\n```\n\nThe following code (test/tests/http-request-aggregate.js) produced the output above.\n```js\nvar http = require('http');\n\nvar options = {\n  hostname: 'www.google.com',\n  port: 80,\n  path: '/upload',\n  method: 'POST'\n};\n\nvar req = http.request(options, function(res) {\n  res.setEncoding('utf8');\n  res.on('data', function (chunk) {});\n});\n\nreq.on('error', function(e) {});\n\nreq.write('data\\n');\nreq.write('data\\n');\nreq.end();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Fnetpeek","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheapwolf%2Fnetpeek","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Fnetpeek/lists"}