{"id":13902949,"url":"https://github.com/coderaiser/madrun","last_synced_at":"2026-02-16T22:15:57.944Z","repository":{"id":38954328,"uuid":"167557671","full_name":"coderaiser/madrun","owner":"coderaiser","description":"🏎 CLI tool to run multiple npm-scripts in a madly comfortable way","archived":false,"fork":false,"pushed_at":"2025-12-26T15:07:45.000Z","size":284,"stargazers_count":27,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-28T03:15:50.652Z","etag":null,"topics":["cli","javascript","nodejs","npm","npm-scripts","redrun","run"],"latest_commit_sha":null,"homepage":"","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":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"supported.json","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"coderaiser","patreon":"coderaiser","open_collective":"cloudcmd","ko_fi":"coderaiser"}},"created_at":"2019-01-25T14:10:48.000Z","updated_at":"2025-12-26T15:07:48.000Z","dependencies_parsed_at":"2023-01-19T17:02:54.141Z","dependency_job_id":"5aa1f15a-5537-4fea-a50c-3ef44809b4a5","html_url":"https://github.com/coderaiser/madrun","commit_stats":{"total_commits":405,"total_committers":4,"mean_commits":101.25,"dds":"0.059259259259259234","last_synced_commit":"3cf126771abf77b843939da1adda417f7393b636"},"previous_names":[],"tags_count":137,"template":false,"template_full_name":null,"purl":"pkg:github/coderaiser/madrun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fmadrun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fmadrun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fmadrun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fmadrun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderaiser","download_url":"https://codeload.github.com/coderaiser/madrun/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fmadrun/sbom","scorecard":{"id":297344,"data":{"date":"2025-08-11","repo":{"name":"github.com/coderaiser/madrun","commit":"4e8a2aeab5505535fe38cf5e04ac1ba30eac8caf"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":4,"reason":"5 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/coderaiser/madrun/nodejs.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/nodejs.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/coderaiser/madrun/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/coderaiser/madrun/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/coderaiser/madrun/nodejs.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/nodejs.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/coderaiser/madrun/nodejs.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/nodejs.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/coderaiser/madrun/nodejs.yml/master?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/nodejs.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T19:52:51.343Z","repository_id":38954328,"created_at":"2025-08-17T19:52:51.343Z","updated_at":"2025-08-17T19:52:51.343Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28849381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","javascript","nodejs","npm","npm-scripts","redrun","run"],"created_at":"2024-08-06T22:01:31.061Z","updated_at":"2026-01-28T19:03:10.334Z","avatar_url":"https://github.com/coderaiser.png","language":"JavaScript","funding_links":["https://github.com/sponsors/coderaiser","https://patreon.com/coderaiser","https://opencollective.com/cloudcmd","https://ko-fi.com/coderaiser"],"categories":["JavaScript","cli"],"sub_categories":[],"readme":"# 🏎 Madrun [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]\n\n![image](https://user-images.githubusercontent.com/1573141/223524904-4175548f-1e30-4745-bf2e-c2f4ea39fef5.png)\n\n[NPMURL]: https://npmjs.org/package/madrun \"npm\"\n[NPMIMGURL]: https://img.shields.io/npm/v/madrun.svg?style=flat\n[BuildStatusURL]: https://github.com/coderaiser/madrun/actions?query=workflow%3A%22Node+CI%22 \"Build Status\"\n[BuildStatusIMGURL]: https://github.com/coderaiser/madrun/workflows/Node%20CI/badge.svg\n[LicenseURL]: https://tldrlegal.com/license/mit-license \"MIT License\"\n[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[CoverageURL]: https://coveralls.io/github/coderaiser/madrun?branch=master\n[CoverageIMGURL]: https://coveralls.io/repos/coderaiser/madrun/badge.svg?branch=master\u0026service=github\n\nCLI tool to run multiple npm-scripts in a madly comfortable way. Can be used together with [redrun](https://github.com/coderaiser/redrun).\n\n## Install\n\n```\nnpm i madrun -g\n```\n\n# Usage\n\nFirst thing you should do is:\n\n- ✅ create `.madrun.js` file with all scripts written in **JavaScript**;\n- ✅ update `package.json` scripts to use **madrun**;\n\nThis can be done using:\n\n```sh\nmadrun --init\n```\n\nWhen you create new script, you can run it with: `madrun lint test`.\nRun `madrun --init` again, to update `package.json`, so you can use:\n\n```sh\nnpm run lint\nnpm test\n```\n\nThen you can run `madrun` without args to see list of a scripts. Or run:\n\n```\nmadrun \u003cscript\u003e\n```\n\nTo run specified script.\n\n# Completion\n\nYou can enable tab-completion of npm scripts similar to [npm's completion](https://docs.npmjs.com/cli/completion) using:\n\n```sh\nmadrun-completion \u003e\u003e ~/.bashrc\nmadrun-completion \u003e\u003e ~/.zshrc\n```\n\nYou may also pipe the output of madrun-completion to a file such as `/usr/local/etc/bash_completion.d/madrun` if you have a system that will read that file for you.\n\n## Options\n\n`Madrun` can be configured using `env variables`.\n\n### MADRUN_PWD\n\n`MADRUN_PWD` will output current directory path:\n\n```sh\nMADRUN_PWD=1 madrun lint\n\u003e putout lib test .madrun.js (/home/coderaiser/cloudcmd)\n```\n\n### MADRUN_NAME\n\n`MADRUN_NAME` will output name of current directory:\n\n```sh\nMADRUN_NAME=1 madrun lint\n\u003e putout lib test .madrun.js (cloudcmd)\n```\n\n## API\n\n`madrun` supports next `API` set:\n\n### run(name, [opt, env])\n\nRun script by a name or regexp.\n\n- `name` - name of a script\n- `opt` - options to run with\n- `env` - object with `env` variables\n- `scripts` - all scripts set (need for embedding only)\n\n### series(names, [opt, env, scripts])\n\nRun scripts by a name or regexp one-by-one.\n\n- `name` - array of names of scrips\n- `opt` - options to run with\n- `env` - object with `env` variables\n- `scripts` - all scripts set (need for embedding only)\n\n### parallel (names, [opt, env, scripts])\n\nRun scripts by a name or regexp parallel.\n\n- `name` - array of names of scrips\n- `opt` - options to run with\n- `env` - object with `env` variables\n- `scripts` - all scripts set (need for embedding only)\n\n### cutEnv(name, [opt, env])\n\nSame as `run`, but returns result without `env`.\n\n- `name` - name of a script\n- `opt` - options to run with\n- `env` - object with `env` variables\n- `scripts` - all scripts set (need for embedding only)\n\n## Example\n\nLet's install `madrun` and save it as `devDependency` with:\n\n```sh\nnpm i madrun -D\n```\n\nLet's create file `.madrun.js`:\n\n```js\nimport {run, cutEnv} from 'madrun';\n\nconst env = {\n    CI: 1,\n};\n\nexport default {\n    'lint': () =\u003e 'putout .',\n    'fix:lint': async () =\u003e await run('lint', '--fix', {\n        NODE_ENV: 'development',\n    }),\n    'lint:env': () =\u003e ['putout .', {\n        CI: 1,\n    }],\n    'env:lint': () =\u003e [env, 'putout .'],\n    'lint:no-env': async () =\u003e await cutEnv('lint:env'),\n};\n```\n\nNow you can call any of listed scripts with help of 🏎 **Madrun**:\n\n```sh\nmadrun lint\n\u003e putout .\n```\n\nFor **series run** you can use:\n\n```sh\nmadrun lint:*\n\u003e CI=1 putout . \u0026\u0026 putout .\n```\n\n## Related\n\n- [redrun](https://github.com/coderaiser/redrun) - CLI tool to run multiple npm-scripts fast.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fmadrun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderaiser%2Fmadrun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fmadrun/lists"}