{"id":16463598,"url":"https://github.com/accraze/split-md","last_synced_at":"2025-03-21T06:31:54.591Z","repository":{"id":44440293,"uuid":"50758544","full_name":"accraze/split-md","owner":"accraze","description":":wavy_dash: Split a Markdown file into smaller files","archived":false,"fork":false,"pushed_at":"2019-08-12T05:14:26.000Z","size":35,"stargazers_count":24,"open_issues_count":3,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T02:22:18.996Z","etag":null,"topics":["cli","delimiter","markdown","markdown-parser","smaller-files"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/split-md","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/accraze.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}},"created_at":"2016-01-31T04:20:35.000Z","updated_at":"2024-11-07T11:35:43.000Z","dependencies_parsed_at":"2022-07-13T08:11:00.900Z","dependency_job_id":null,"html_url":"https://github.com/accraze/split-md","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accraze%2Fsplit-md","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accraze%2Fsplit-md/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accraze%2Fsplit-md/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accraze%2Fsplit-md/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/accraze","download_url":"https://codeload.github.com/accraze/split-md/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244751207,"owners_count":20504236,"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":["cli","delimiter","markdown","markdown-parser","smaller-files"],"created_at":"2024-10-11T11:14:55.892Z","updated_at":"2025-03-21T06:31:54.343Z","avatar_url":"https://github.com/accraze.png","language":"JavaScript","readme":"[![travis build](https://img.shields.io/travis/accraze/split-md.svg)](https://travis-ci.org/accraze/split-md)\n[![version](https://img.shields.io/npm/v/split-md.svg)](https://www.npmjs.com/package/split-md)\n[![license](https://img.shields.io/npm/l/split-md.svg)](https://www.npmjs.com/package/split-md)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n\n# split-md\n\nNodeJS CLI that splits a Markdown file into smaller files based on a given delimiter. It's basically `str.split(pattern)` for `.md` files.\n\n## Install\n\n```\n$ npm install split-md\n```\n\n## Useage\n\nTo use the CLI, type `split-md` followed by it's args:\n* readPath (path to larger .md file)\n* pattern (string)\n* cleanName (string): do you want to remove anything from the pattern?\n* writePath (path to where smaller files should be created)\n* limit (optionally limit the number of files created)\n* hasCounter (optionally have the outputted files names be numbered)\n\n#### Example\n\n```\n$ split-md 'tests/testdata.md' '### v' '###' '' 10 true\n```\n\nIn the above example we are reading in `tests/testdata.md`. Our delimiter is whenever we see a line start with the pattern `### v`. We want to use this line for our new markdown file's name, however we want to remove the `###` by setting it as the cleanName variable. Next, we are setting the `writePath` to our current working directory by giving an empty string as this variable. Also note that we are setting our limit to only create 10 files before exiting. Lastly, we have `true` to show that we want the file names to be ordered.\n\n## License:\n\n[MIT](https://github.com/accraze/split-md/blob/master/LICENSE) License 2016-2018 © Andy Craze \u0026 contributors\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccraze%2Fsplit-md","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faccraze%2Fsplit-md","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccraze%2Fsplit-md/lists"}