{"id":24976160,"url":"https://github.com/alphahydrae/node-exec","last_synced_at":"2026-03-02T17:05:06.986Z","repository":{"id":275368735,"uuid":"925694033","full_name":"AlphaHydrae/node-exec","owner":"AlphaHydrae","description":"The execvp function for Node.js","archived":false,"fork":false,"pushed_at":"2025-02-05T00:30:56.000Z","size":832,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T08:23:27.679Z","etag":null,"topics":["exec","execvp"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@alphahydrae/exec","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/AlphaHydrae.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2025-02-01T14:12:05.000Z","updated_at":"2025-02-05T00:30:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5865133-3f42-4e89-b3e5-06b7e60c3996","html_url":"https://github.com/AlphaHydrae/node-exec","commit_stats":null,"previous_names":["alphahydrae/node-exec"],"tags_count":13,"template":false,"template_full_name":"napi-rs/package-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlphaHydrae%2Fnode-exec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlphaHydrae%2Fnode-exec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlphaHydrae%2Fnode-exec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlphaHydrae%2Fnode-exec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlphaHydrae","download_url":"https://codeload.github.com/AlphaHydrae/node-exec/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249707491,"owners_count":21313854,"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":["exec","execvp"],"created_at":"2025-02-03T21:59:32.532Z","updated_at":"2026-03-02T17:05:06.964Z","avatar_url":"https://github.com/AlphaHydrae.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `@alphahydrae/exec`\n\nThe [`execvp` function](https://linux.die.net/man/3/execvp) for Node.js.\n\n```js\nimport { execvp } from '@alphahydrae/exec';\n\nexecvp('ls', ['.']);\n\nconsole.log(`\n  This will never print because the executing Node.js\n  program is replaced by the executed command, keeping\n  the same process ID and file descriptors.\n`);\n```\n\nIf you're familiar with Bash's `exec` function, this is the same for Node.js.\n\nThis package was developed to be used in Node.js scripts that are frontends to\nexecute other commands. For example, a script that would build and execute a\ncomplex SSH or Ansible command.\n\n[![version](https://img.shields.io/npm/v/@alphahydrae/exec)](https://www.npmjs.com/package/@alphahydrae/exec)\n[![build](https://github.com/AlphaHydrae/node-exec/actions/workflows/build.yml/badge.svg)](https://github.com/AlphaHydrae/node-exec/actions/workflows/build.yml)\n[![MIT License](https://img.shields.io/static/v1?label=license\u0026message=MIT\u0026color=informational)](https://opensource.org/licenses/MIT)\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [Installation](#installation)\n- [Support matrix](#support-matrix)\n- [Credits](#credits)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Installation\n\n```bash\nnpm i @alphahydrae/exec\n```\n\n## Support matrix\n\n| OS \u0026 Architecture | Node.js 20 | Node.js 22 | Node.js 24 |\n| :---------------- | :--------: | :--------: | :--------: |\n| macOS x64         |     ✅     |     ✅     |     ✅     |\n| macOS arm64       |     ✅     |     ✅     |     ✅     |\n| Linux x64 gnu     |     ✅     |     ✅     |     ✅     |\n| Linux x64 musl    |     ✅     |     ✅     |     ✅     |\n| Linux arm64 gnu   |     ✅     |     ✅     |     ✅     |\n| Linux arm64 musl  |     ✅     |     ✅     |     ✅     |\n| Linux arm gnu     |     ❌     |     ❌     |     ❌     |\n| Android arm64     |     ❌     |     ❌     |     ❌     |\n| Android armv7     |     ❌     |     ❌     |     ❌     |\n| FreeBSD x64       |     ❌     |     ❌     |     ❌     |\n| Windows x64       |     ❌     |     ❌     |     ❌     |\n| Windows x32       |     ❌     |     ❌     |     ❌     |\n| Windows arm64     |     ❌     |     ❌     |     ❌     |\n\n\u003e The `exec` family of functions is part of the\n\u003e [POSIX](https://en.wikipedia.org/wiki/POSIX) operating system API, so it will\n\u003e not work on Windows.\n\n## Credits\n\nThis package is a re-implementation of\nhttps://github.com/jprichardson/node-kexec in Rust, also inspired by the\nfollowing conversations:\n\n- [A way to call execl, execle, execlp, execv, execvP or execvp from Node.js](https://stackoverflow.com/a/77774287/249893)\n- [execve in node](https://groups.google.com/g/nodejs/c/4vtWG1KCQC4)\n\nAlso a big thank you to the following Rust projects for making it easy:\n\n- [NAPI-RS](https://napi.rs) (build pre-compiled Node.js addons in Rust)\n- [nix](https://docs.rs/nix) (Rust-friendly bindings to the various \\*nix system functions)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falphahydrae%2Fnode-exec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falphahydrae%2Fnode-exec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falphahydrae%2Fnode-exec/lists"}