{"id":42113944,"url":"https://github.com/coderaiser/madcut","last_synced_at":"2026-01-26T14:03:33.898Z","repository":{"id":53830537,"uuid":"521400607","full_name":"coderaiser/madcut","owner":"coderaiser","description":"CLI tool to cut markdown file in a madly comfortable way","archived":false,"fork":false,"pushed_at":"2024-01-29T08:45:48.000Z","size":42,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T14:39:56.614Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":"coderaiser","patreon":"coderaiser","open_collective":"cloudcmd","ko_fi":"coderaiser"}},"created_at":"2022-08-04T20:03:56.000Z","updated_at":"2023-12-02T20:28:59.000Z","dependencies_parsed_at":"2024-01-29T10:10:44.698Z","dependency_job_id":null,"html_url":"https://github.com/coderaiser/madcut","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"39f437b95060701eba89b471586d6a4e179c34d0"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/coderaiser/madcut","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fmadcut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fmadcut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fmadcut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fmadcut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderaiser","download_url":"https://codeload.github.com/coderaiser/madcut/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fmadcut/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28780058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T13:55:28.044Z","status":"ssl_error","status_checked_at":"2026-01-26T13:55:26.068Z","response_time":59,"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":[],"created_at":"2026-01-26T14:03:25.926Z","updated_at":"2026-01-26T14:03:33.892Z","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":[],"sub_categories":[],"readme":"# 🎬 MadCut [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]\n\n[NPMURL]: https://npmjs.org/package/madcut \"npm\"\n[NPMIMGURL]: https://img.shields.io/npm/v/madcut.svg?style=flat\n[BuildStatusURL]: https://github.com/coderaiser/madcut/actions?query=workflow%3A%22Node+CI%22 \"Build Status\"\n[BuildStatusIMGURL]: https://github.com/coderaiser/madcut/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/madcut?branch=master\n[CoverageIMGURL]: https://coveralls.io/repos/coderaiser/madcut/badge.svg?branch=master\u0026service=github\n\nCLI tool to cut markdown into pieces. Based on 🐊[**Putout**](https://github.com/coderaiser/putout) code transformer.\n\n## Install\n\n```\nnpm i madcut\n```\n\n## CLI\n\nJust run 🎬**MadCut**, it will read `README.md` and write pieces according to their headings to files.\nGenerally names converted to kebab form: `## Hello world` will be converted to file name `hello-world.md`.\n\n```sh\n$ madcut\n```\n\n## API\n\n### madcut(markdown);\n\nInfer captions to a list.\n\n```js\nimport madcut from 'madcut';\nimport montag from 'montag';\n\nawait madcut(montag`\n    # Hello\n    ## World\n`);\n\n// returns\n({\n    index: '# Hello\\n',\n    world: '## World\\n',\n});\n```\n\n### cut(markdown)\n\nCut markdown file into a pieces list.\n\n```js\nimport {cut} from 'madcut';\nimport montag from 'montag';\n\nawait cut(montag`\n    # Hello\n    \n    ## World\n    \n    This is the world\n`);\n\n// returns\n[\n    montag`\n        # Hello\\n\\n\n    `,\n    montag`\n        ## World\n        \n        This is the world\\n\n    `,\n];\n```\n\n### infer(markdown);\n\nInfer captions to a list.\n\n```js\nimport {infer} from 'madcut';\nimport montag from 'montag';\n\nawait infer(montag`\n    # Hello\n    ## World\n`);\n\n// returns\n['World'];\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fmadcut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderaiser%2Fmadcut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fmadcut/lists"}