{"id":18324014,"url":"https://github.com/dirk/rdce","last_synced_at":"2025-04-06T00:30:52.836Z","repository":{"id":18798524,"uuid":"22012530","full_name":"dirk/rdce","owner":"dirk","description":"Runtime dead code elimination for JavaScript","archived":false,"fork":false,"pushed_at":"2014-11-06T18:09:42.000Z","size":204,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T13:45:50.824Z","etag":null,"topics":[],"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/dirk.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":"2014-07-19T15:21:37.000Z","updated_at":"2019-01-24T03:48:48.000Z","dependencies_parsed_at":"2022-07-22T10:22:34.384Z","dependency_job_id":null,"html_url":"https://github.com/dirk/rdce","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/dirk%2Frdce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirk%2Frdce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirk%2Frdce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirk%2Frdce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dirk","download_url":"https://codeload.github.com/dirk/rdce/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419597,"owners_count":20936009,"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-11-05T18:31:07.396Z","updated_at":"2025-04-06T00:30:52.041Z","avatar_url":"https://github.com/dirk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rdce\n\nA tool for analyzing JavaScript code to identify live and dead code paths at runtime. Rdce should run in any modern JavaScript environment. It works by post-processing JavaScript files to inject small hooks at the beginning of function bodies. These hooks, in combination with a small runtime library, allow it to track execution of functions to easily identify live and dead ones.\n\n### Example\n\nThe example below was generated via the following steps:\n\n```bash\nrdce dep/diff_match_patch.js \u003e dep/diff_match_patch.rdce.js\n```\n\nThen the testing HTML document was updated like:\n\n```html\n\u003c!-- Plain version: \u003cscript type=\"text/javascript\" src=\"dep/diff_match_patch.js\"\u003e\u003c/script\u003e --\u003e\n\u003c!-- Rdce version: --\u003e\n\u003cscript type=\"text/javascript\" src=\"dep/diff_match_patch.rdce.js\"\u003e\u003c/script\u003e\n```\n\nThe testing application was then run through its regular usage paces. Finally, `_rdce.report()` was called in the console:\n\n![](sample.png)\n\n### License\n\nReleased under the MIT license, see `LICENSE` for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirk%2Frdce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdirk%2Frdce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirk%2Frdce/lists"}