{"id":29189429,"url":"https://github.com/coderaiser/spawnify","last_synced_at":"2026-03-14T06:02:50.393Z","repository":{"id":19960093,"uuid":"23226993","full_name":"coderaiser/spawnify","owner":"coderaiser","description":"Create new process in node.","archived":false,"fork":false,"pushed_at":"2023-08-10T08:55:59.000Z","size":120,"stargazers_count":6,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-16T17:06:34.182Z","etag":null,"topics":["cloudcmd","emitter","execute","javascript","nodejs","process","spawn"],"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/coderaiser.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":"LICENSE","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":"2014-08-22T13:55:04.000Z","updated_at":"2023-08-27T03:23:47.000Z","dependencies_parsed_at":"2024-06-18T18:51:30.357Z","dependency_job_id":null,"html_url":"https://github.com/coderaiser/spawnify","commit_stats":{"total_commits":242,"total_committers":2,"mean_commits":121.0,"dds":"0.35123966942148765","last_synced_commit":"270cf080ac83a89902d8efd9adf58b99d4cf4f94"},"previous_names":[],"tags_count":79,"template":false,"template_full_name":null,"purl":"pkg:github/coderaiser/spawnify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fspawnify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fspawnify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fspawnify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fspawnify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderaiser","download_url":"https://codeload.github.com/coderaiser/spawnify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fspawnify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260261703,"owners_count":22982698,"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":["cloudcmd","emitter","execute","javascript","nodejs","process","spawn"],"created_at":"2025-07-01T23:07:42.545Z","updated_at":"2026-03-14T06:02:50.363Z","avatar_url":"https://github.com/coderaiser.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spawnify [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/spawnify.svg?style=flat\n[BuildStatusIMGURL]: https://img.shields.io/travis/coderaiser/spawnify/master.svg?style=flat\n[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[NPMURL]: https://npmjs.org/package/spawnify \"npm\"\n[BuildStatusURL]: https://travis-ci.org/coderaiser/spawnify \"Build Status\"\n[LicenseURL]: https://tldrlegal.com/license/mit-license \"MIT License\"\n\nCreate new processes, change directories, auto switch between spawn and exec.\n\n## Install\n\n```\nnpm i spawnify --save\n```\n\n## How to use?\n\n```js\nconst spawnify = require('spawnify');\nconst spawn = spawnify('ls -lha', {\n    cwd: __dirname,\n});\n\nspawn.on('error', (error) =\u003e {\n    console.error(error.message);\n});\n\n/* not mandatory */\nspawn.on('data', (data) =\u003e {\n    console.log(data);\n});\n\n/* not mandatory */\nspawn.on('start', () =\u003e {\n    console.log('process has been started');\n    // kill process after start\n    spawn.kill();\n});\n\n/* not mandatory */\nspawn.on('path', (path) =\u003e {\n    console.log('directory was changed', path);\n});\n\n/* not mandatory */\nspawn.on('close', () =\u003e {\n    console.log('process closed');\n});\n\n/* not mandatory */\nspawn.on('exit', () =\u003e {\n    console.log('process closed');\n});\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fspawnify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderaiser%2Fspawnify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fspawnify/lists"}