{"id":16535425,"url":"https://github.com/hougesen/markdown-prune","last_synced_at":"2026-03-03T19:32:27.101Z","repository":{"id":56757288,"uuid":"524686846","full_name":"hougesen/markdown-prune","owner":"hougesen","description":"Tool for deleting unwanted files by extension to reduce container size ","archived":false,"fork":false,"pushed_at":"2024-06-06T23:53:37.000Z","size":55,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T20:03:49.699Z","etag":null,"topics":["cli","command-line","docker","filesystem","markdown","rust","terminal","tool"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/hougesen.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2022-08-14T13:58:22.000Z","updated_at":"2025-02-01T18:59:15.000Z","dependencies_parsed_at":"2024-10-28T10:16:48.511Z","dependency_job_id":"1ef8e344-809f-44aa-a4b8-1b64d80d6372","html_url":"https://github.com/hougesen/markdown-prune","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/hougesen/markdown-prune","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hougesen%2Fmarkdown-prune","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hougesen%2Fmarkdown-prune/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hougesen%2Fmarkdown-prune/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hougesen%2Fmarkdown-prune/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hougesen","download_url":"https://codeload.github.com/hougesen/markdown-prune/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hougesen%2Fmarkdown-prune/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30056068,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","command-line","docker","filesystem","markdown","rust","terminal","tool"],"created_at":"2024-10-11T18:27:25.629Z","updated_at":"2026-03-03T19:32:27.080Z","avatar_url":"https://github.com/hougesen.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markdown-prune\n\nUtility for deleting all markdown files in a folder recursively. Intended to be used as part of a CI/CD pipeline to reduce container size.\n\n## Installation\n\n```sh\ncargo install markdown-prune\n```\n\n## Usage\n\n### Basic usage\n\nProviding a path to a folder is required.\n\n```sh\n# Current path\nmarkdown-prune .\n\n# Absolute path\nmarkdown-prune /path/to/folder\n\n# Relative path\nmarkdown-prune ./node_modules\n```\n\n### Explicit arguments\n\n#### Path\n\n`--path` is used to pass an explicit path.\n\n```sh\nmarkdown-prune --path ./node_modules\n# Deleted 2185 files totaling 12.03mb\n```\n\n#### Dry running\n\nIf you want to dry run first before deleting the files, either pass `--dry` or `--check` as an argument. Dry running only works with an explicit path argument.\n\n```sh\nmarkdown-prune --path ./node_modules --check\n# Found 2185 files totaling 12.03mb\n```\n\n#### Custom filenames \u0026 extensions\n\nIf you wish to remove files you can use the following commands `--file`, `--file-name` or `--ext`.\n\n```sh\n\nmarkdown-prune --path ./node_modules --file .DS_Store --file .d.ts\n\n# Found 25216 files totaling 114.10MB\n```\n\n#### Result unit size\n\nThe argument `--unit` can be used to change the default result byte size.\n\nIt accepts the following `b`, `kb`, `mb`, `gb`, `tb`\n\n```sh\nmarkdown-prune --path ./node_modules --check --unit b\n# Found 2185 files totaling 12030000b\n\nmarkdown-prune --path ./node_modules --check --unit kb\n# Found 2185 files totaling 12030kb\n\nmarkdown-prune --path ./node_modules --check --unit mb\n# Found 2185 files totaling 12.03mb\n\nmarkdown-prune --path ./node_modules --check --unit gb\n# Found 2185 files totaling 0.01gb\n\nmarkdown-prune --path ./node_modules --check --unit tb\n# Found 2185 files totaling 0tb\n```\n\n## Disclaimer\n\nUse at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhougesen%2Fmarkdown-prune","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhougesen%2Fmarkdown-prune","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhougesen%2Fmarkdown-prune/lists"}