{"id":28114562,"url":"https://github.com/sombriks/mdexec","last_synced_at":"2026-03-03T15:04:13.684Z","repository":{"id":291642841,"uuid":"978288190","full_name":"sombriks/mdexec","owner":"sombriks","description":"run bash scripts from markdown files","archived":false,"fork":false,"pushed_at":"2025-05-12T13:37:20.000Z","size":298,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-01T21:55:34.261Z","etag":null,"topics":["ava","bash","cli","markdown"],"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/sombriks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":["sombriks"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2025-05-05T18:53:04.000Z","updated_at":"2025-05-12T13:36:10.000Z","dependencies_parsed_at":"2025-05-14T05:25:27.695Z","dependency_job_id":"486652de-e607-4a98-82bd-f7f89989e37a","html_url":"https://github.com/sombriks/mdexec","commit_stats":null,"previous_names":["sombriks/mdrun","sombriks/mdexec"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/sombriks/mdexec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sombriks%2Fmdexec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sombriks%2Fmdexec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sombriks%2Fmdexec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sombriks%2Fmdexec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sombriks","download_url":"https://codeload.github.com/sombriks/mdexec/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sombriks%2Fmdexec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30050222,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T14:38:37.398Z","status":"ssl_error","status_checked_at":"2026-03-03T14:38:06.721Z","response_time":61,"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":["ava","bash","cli","markdown"],"created_at":"2025-05-14T05:25:11.451Z","updated_at":"2026-03-03T15:04:13.665Z","avatar_url":"https://github.com/sombriks.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sombriks"],"categories":[],"sub_categories":[],"readme":"# [mdexec][repo]\n\n[![npm](https://badgen.net/npm/v/mdexec?color=blue\u0026icon=npm)][npm]\n[![Node.js CI](https://github.com/sombriks/mdexec/actions/workflows/node.js.yml/badge.svg)][workflow]\n[![MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)\n\n```bash\necho \"Run bash scripts inside markdown files!\"\n```\n\n## Installing\n\n```bash\nnpm -g i mdexec\n```\n\nRun with `npx` if you prefer:\n\n```bash\nnpx mdexec\n```\n\n## Usage\n\nRun the first bash script contained in a `README.md` file in current directory:\n\n```bash\nmdexec 0\n```\n\nList all scripts from `README.md`:\n\n```bash\nmdexec \n# or mdexec -l\n```\n\nPass directory where to run and markdown file name, run the 4th script:\n\n```bash\nmdexec -f steps/intro.md -d ../example -s 3\n```\n\nRun `mdexec -h` for more details.\n\n## Why\n\nSometimes documentation also offers a command to execute.\n\nWould be nice exec such scripts from terminal.\n\nSome IDE's already offers to execute scripts.\n\n## How\n\nAdd some script blocks in your markdown document:\n\n```bash\n# Obi-Wan jumps\necho \"Hello there!\"\n```\n\n```bash\n# Grievous salutes\necho \"General Kenobi!\"\n```\n\n```bash\nfor i in `ls`\ndo\n  echo $i\ndone\n```\n\nThen `mdexec` will present them:\n\n    ## How\n    [0]:\n    # Obi-Wan jumps\n    echo \"Hello there!\"\n    [1]:\n    # Grievous salutes\n    echo \"General Kenobi!\"\n    [2]:\n    for i in `ls`\n    do\n      echo $i\n    done\n  \n### What about other shells\n\n```bash\necho \"for now,\"\necho \"only bash is supported\"\n```\n\n## Further reading\n\n- [Intellij plugin][intellij]\n- (Abandoned) [VSCode plugin][vscode]\n- [Jupyter notebooks][jupyter]\n\n[repo]: https://github.com/sombriks/mdexec\n[npm]: https://www.npmjs.com/package/mdexec\n[workflow]: https://github.com/sombriks/mdexec/actions/workflows/node.js.yml\n[intellij]: https://www.jetbrains.com/help/idea/markdown.html#run-commands\n[vscode]: https://marketplace.visualstudio.com/items/?itemName=Sycl.markdown-command-runner\n[jupyter]: https://jupyter.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsombriks%2Fmdexec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsombriks%2Fmdexec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsombriks%2Fmdexec/lists"}