{"id":19414756,"url":"https://github.com/segsalerty2013/node-process","last_synced_at":"2025-10-16T12:03:52.071Z","repository":{"id":65411406,"uuid":"86866469","full_name":"segsalerty2013/node-process","owner":"segsalerty2013","description":"A simple utility to handle sub-processes and multi threading and tasking in a node driven application","archived":false,"fork":false,"pushed_at":"2017-09-09T19:27:12.000Z","size":4,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-28T17:27:02.685Z","etag":null,"topics":["background","background-thread","fork","helpers","multithreading","node","nodejs","process","thread"],"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/segsalerty2013.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":"2017-03-31T22:56:46.000Z","updated_at":"2017-04-01T19:20:28.000Z","dependencies_parsed_at":"2023-01-23T10:54:58.348Z","dependency_job_id":null,"html_url":"https://github.com/segsalerty2013/node-process","commit_stats":{"total_commits":6,"total_committers":3,"mean_commits":2.0,"dds":"0.33333333333333337","last_synced_commit":"dafd53e63882b3ccc800cc8f1584459d174b0db1"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segsalerty2013%2Fnode-process","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segsalerty2013%2Fnode-process/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segsalerty2013%2Fnode-process/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segsalerty2013%2Fnode-process/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/segsalerty2013","download_url":"https://codeload.github.com/segsalerty2013/node-process/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223954154,"owners_count":17231183,"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":["background","background-thread","fork","helpers","multithreading","node","nodejs","process","thread"],"created_at":"2024-11-10T12:39:27.256Z","updated_at":"2025-10-16T12:03:47.034Z","avatar_url":"https://github.com/segsalerty2013.png","language":"JavaScript","readme":"[![Build Status](https://travis-ci.org/segsalerty2013/node-process.svg?branch=master)](https://travis-ci.org/segsalerty2013/node-process)\n\n# Node Process\nMulti threading/tasking and background task helper module for nodejs.\n\n### Description\nRead about the use and motivation behing this here: \n[https://github.com/segsalerty2013/node-process/wiki](https://github.com/segsalerty2013/node-process/wiki)\n\n### Installation\n\n```bash\n$ npm install node-process;\n```\n\n### Usage\n\n```javascript\n//for one sub process/thread\nlet node_process = require('node_process');\nnode_process.fork('path_to_valid_module', ['array of arg required by module'], true)\n.then((response)=\u003e{\n    //response is string|object sent from the module back to the main thread\n    //such response will be sent with process.send('string|object');\n    console.log(response);\n})\n.catch((error)=\u003e{\n    //error occurred.\n    console.log(error);\n});\n\n//for a sticky process/thread that never ends until main thread is dead\nnode_process.fork('path_to_valid_module', ['array of arg required by module'], false)\n.then((response)=\u003e{\n    //response is string|object sent from the module back to the main thread\n    //such response will be sent with process.send('string|object', 'Handler' ()=\u003e{}, {keepOpen:true});\n    //note the Handler i.e Empty ()=\u003e{}\n    //and the {keepOpen:true} options\n    console.log(response);\n})\n.catch((error)=\u003e{\n    //error occurred.\n    console.log(error);\n});\n```\n### Submit an issue, feedback or a feature request\n- Any issue topics are welcome.\n\n### CONTRIBUTING\n - Fork it!\n - Clone your fork\n - Create your feature branch: `git checkout -b my-new-feature;`\n - Add a test for each new code\n - Add add your new code\n - Run the tests: `npm test;`\n - Commit your changes: `git commit -am 'Add some feature/fix';`\n - Push to the branch: `git push origin my-new-feature;`\n - Submit a pull request: \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegsalerty2013%2Fnode-process","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsegsalerty2013%2Fnode-process","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegsalerty2013%2Fnode-process/lists"}