{"id":23286676,"url":"https://github.com/allnulled/runtime","last_synced_at":"2025-04-06T15:33:53.035Z","repository":{"id":268677039,"uuid":"905127613","full_name":"allnulled/runtime","owner":"allnulled","description":"Spawns new processes from JavaScript functions.","archived":false,"fork":false,"pushed_at":"2024-12-18T08:10:26.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T05:32:56.703Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allnulled.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-18T08:08:13.000Z","updated_at":"2024-12-18T17:51:44.000Z","dependencies_parsed_at":"2024-12-18T09:34:59.643Z","dependency_job_id":null,"html_url":"https://github.com/allnulled/runtime","commit_stats":null,"previous_names":["allnulled/runtime"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Fruntime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Fruntime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Fruntime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Fruntime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allnulled","download_url":"https://codeload.github.com/allnulled/runtime/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247503434,"owners_count":20949432,"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-12-20T02:14:02.661Z","updated_at":"2025-04-06T15:33:53.009Z","avatar_url":"https://github.com/allnulled.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @allnulled/runtime\n\nSpawns new processes from JavaScript functions.\n\n## Installation\n\n```sh\nnpm i -s @allnulled/runtime\n```\n\n## Usage\n\nThis script spawns 3 different processes:\n\n```js\nconst Runtime = require(\"@allnulled/runtime\");\n\nRuntime.start(() =\u003e {\n    setInterval(() =\u003e {\n        console.log(\"go 1\");\n    }, 1000);\n});\n\nRuntime.start(() =\u003e {\n    setInterval(() =\u003e {\n        console.log(\"go 2\");\n    }, 1000);\n});\n\nRuntime.start(() =\u003e {\n    setInterval(() =\u003e {\n        console.log(\"go 3\");\n    }, 1000);\n});\n```\n\nThings to now:\n\n- The scripts are saved automatically under `runtimes` folder (from `process.cwd`), each of them with its own id.\n   - Change the second parameter to another path if you prefer other folder.\n- The functions (or callbacks, it does not matter) must not provide any parameter, as it is going to run in a separated different process.\n- The scripts are headed with events to remove the file itself when the process is over.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallnulled%2Fruntime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallnulled%2Fruntime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallnulled%2Fruntime/lists"}