{"id":15364811,"url":"https://github.com/chinesedfan/recursion-executor","last_synced_at":"2025-09-21T06:26:46.102Z","repository":{"id":203070943,"uuid":"708663094","full_name":"chinesedfan/recursion-executor","owner":"chinesedfan","description":"Run recursive functions without stack overflow.","archived":false,"fork":false,"pushed_at":"2023-10-28T04:38:36.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-15T00:31:36.110Z","etag":null,"topics":["generator","recurison"],"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/chinesedfan.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}},"created_at":"2023-10-23T06:11:38.000Z","updated_at":"2023-10-28T04:39:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"c6e37633-eb3d-402f-ae9f-4ba966ab9bea","html_url":"https://github.com/chinesedfan/recursion-executor","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"08c247bb2f9365a1f01b56da1adb38666e1ed817"},"previous_names":["chinesedfan/recursion-executor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chinesedfan/recursion-executor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinesedfan%2Frecursion-executor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinesedfan%2Frecursion-executor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinesedfan%2Frecursion-executor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinesedfan%2Frecursion-executor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chinesedfan","download_url":"https://codeload.github.com/chinesedfan/recursion-executor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinesedfan%2Frecursion-executor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276204640,"owners_count":25602733,"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-09-21T02:00:07.055Z","response_time":72,"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":["generator","recurison"],"created_at":"2024-10-01T13:13:19.465Z","updated_at":"2025-09-21T06:26:46.085Z","avatar_url":"https://github.com/chinesedfan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# recursion-executor\n\nRun recursive functions without stack overflow. \n\n## executor(gf, initArgs)\n\n- `gf` {Generator Function} - the recursive function to be run\n- `initArgs` {Array} - arguments list for the recursive function\n\n## Example\n\nThis package will use generator function to simulate the recursion process, so rewrite the recursion function a bit at the beginning.\n\n```js\nconst executor = require('recursion-executor')\n\nfunction* add(n) {\n    if (n \u003c= 1) return 1\n    // use `yield` whenever calling itself recursively\n    // as well as `const a = add(n - 1)`\n    const a = yield [n - 1]\n    return n + a\n}\nexecutor(add, [1e5])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchinesedfan%2Frecursion-executor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchinesedfan%2Frecursion-executor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchinesedfan%2Frecursion-executor/lists"}