{"id":13980952,"url":"https://github.com/azer/memdiff","last_synced_at":"2025-10-25T08:04:16.744Z","repository":{"id":6986190,"uuid":"8248689","full_name":"azer/memdiff","owner":"azer","description":"BDD style memory leak hunting tool","archived":false,"fork":false,"pushed_at":"2014-03-18T00:48:53.000Z","size":178,"stargazers_count":153,"open_issues_count":2,"forks_count":2,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-05-14T10:22:25.110Z","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/azer.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-02-17T09:35:36.000Z","updated_at":"2021-05-09T12:36:37.000Z","dependencies_parsed_at":"2022-09-16T18:41:52.275Z","dependency_job_id":null,"html_url":"https://github.com/azer/memdiff","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/azer%2Fmemdiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azer%2Fmemdiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azer%2Fmemdiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azer%2Fmemdiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azer","download_url":"https://codeload.github.com/azer/memdiff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228540836,"owners_count":17934031,"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-08-09T04:01:44.864Z","updated_at":"2025-10-25T08:04:16.716Z","avatar_url":"https://github.com/azer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## memdiff [![Build Status](https://travis-ci.org/azer/memdiff.png)](https://travis-ci.org/azer/memdiff)\n\nBDD style memory leak hunting tool. See [example/simple.js](#example)\n\n![](http://i.cloudup.com/WQHTKzYR5T.png)\n\n## Warning\n\nMemdiff is experimental. I've been noticing some inconsistency, haven't had time for checking out and fixing yet.\n\n## Install\n\n```bash\n$ npm install -g memdiff\n```\n\nRequires Node v0.8.x\n\n## Usage\n\n```bash\n$ memdiff --help\n```\n\n\u003ca name=\"example\"\u003e\u003c/a\u003e\n## Example Module\n\n```js\n// example/simple.js\nfunction SimpleClass(){}\n\nvar leaks = [];\n\ndescribe('SimpleClass', function(){\n\n  it('is leaking', function(){\n    leaks.push(new SimpleClass);\n  });\n\n\n  it('is async and not leaking', function(done){\n    new SimpleClass;\n\n    process.nextTick(done);\n  });\n\n});\n```\n\n\u003ca name=\"api\"\u003e\u003c/a\u003e\n## API\n\n```js\nvar memdiff = require('memdiff');\n\nfunction SimpleClass(){}\n\nvar leaks = [];\n\nfunction leaking(){\n  leaks.push(new SimpleClass);\n}\n\nmemdiff(leaking, function(result){ // or memdiff({ fn: leaking, duration: 15, times: 9999, interval: 1 ....\n  console.log('leaking: ', result.size);\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazer%2Fmemdiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazer%2Fmemdiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazer%2Fmemdiff/lists"}