{"id":19689914,"url":"https://github.com/codeversrl/npm-execute-submodules","last_synced_at":"2026-05-13T18:12:33.987Z","repository":{"id":57103211,"uuid":"144283210","full_name":"codeversrl/npm-execute-submodules","owner":"codeversrl","description":"Executes a command through all the NPM modules in node_modules folder.","archived":false,"fork":false,"pushed_at":"2024-03-28T11:49:33.000Z","size":42,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-11T17:52:25.449Z","etag":null,"topics":["npm","scripts","submodules"],"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/codeversrl.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":"2018-08-10T12:26:42.000Z","updated_at":"2024-03-28T11:49:03.000Z","dependencies_parsed_at":"2025-01-10T08:33:42.230Z","dependency_job_id":"3f360996-4c0f-49a9-8b52-36fdfb1cdc45","html_url":"https://github.com/codeversrl/npm-execute-submodules","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeversrl%2Fnpm-execute-submodules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeversrl%2Fnpm-execute-submodules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeversrl%2Fnpm-execute-submodules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeversrl%2Fnpm-execute-submodules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeversrl","download_url":"https://codeload.github.com/codeversrl/npm-execute-submodules/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240996157,"owners_count":19890906,"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":["npm","scripts","submodules"],"created_at":"2024-11-11T19:03:39.595Z","updated_at":"2026-05-13T18:12:28.944Z","avatar_url":"https://github.com/codeversrl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NPM Execute Submodules\n\n[![npm (scoped)](https://img.shields.io/npm/v/@codever/npm-execute-submodules.svg?style=plastic)](https://www.npmjs.com/package/@codever/npm-execute-submodules)\n\nExecutes an npm script through all the NPM modules in `node_modules` folder.\n\n## How does it work\n\nThe provided script will be executed for every `package.json` file that has that script implemented inside `node_modules` folder.\nIt is supposed to fit well with complex projects having custom submodules as dependencies.\nIf those submodules have an updated version with new migrations or new tests, you can make it all run with a single command.\n\n## Why should I need it\n\nEvery `package.json` file can have a `scripts` section like\n\n```\n  \"scripts\": {\n    \"test\": \"jest mytest --notify\"\n  }\n```\n\nif you need to execute `npm run test` on all (or part) of our submodules, you could use `execute-submodules test`\n\n\n## Why not using npm explore?\n\n`npm explore` is a very great tool, but it only calls one module at a time.\nIf you need to execute the same command on all your submodules, you should call `npm explore` for each one of them.\n\n## Installation\n\n```\nnpm install @codever/execute-submodules --save-dev\n```\n\n\n## Usage\n\n```\nexecute-submodules [command] [--dir [directory]] [--ignore [regexp]] [--verbose]\n```\n\nwhere\n\n * `--dir` sets a specific subdirectory where the packages. Default value is `node_modules`, but using local modules could need a different directory\n * `--ignore` sets a regular expression pattern to exclude matches\n * `--verbose` output every module where the npm script is executed\n\n### Usage with npm\n\n```\nnpx execute-submodules [command]\n```\n\n\n#### Examples\n\nRun all the migration (`npm run migrate`) throught all the submodules\n\n```\nexecute-submodules migrate\n```\n\nor\n\n```\nnpx execute-submodules migrate\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeversrl%2Fnpm-execute-submodules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeversrl%2Fnpm-execute-submodules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeversrl%2Fnpm-execute-submodules/lists"}