{"id":16227643,"url":"https://github.com/leafoftree/source2one","last_synced_at":"2025-04-08T04:28:24.636Z","repository":{"id":57366508,"uuid":"133306531","full_name":"leafOfTree/source2one","owner":"leafOfTree","description":"Convert all source code to one markdown file, useful to print and read.","archived":false,"fork":false,"pushed_at":"2018-11-02T02:18:38.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T23:33:56.963Z","etag":null,"topics":["print","read","source-code"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leafOfTree.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-14T04:52:48.000Z","updated_at":"2018-11-16T02:11:18.000Z","dependencies_parsed_at":"2022-08-23T20:10:43.125Z","dependency_job_id":null,"html_url":"https://github.com/leafOfTree/source2one","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Fsource2one","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Fsource2one/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Fsource2one/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Fsource2one/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leafOfTree","download_url":"https://codeload.github.com/leafOfTree/source2one/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247777893,"owners_count":20994370,"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":["print","read","source-code"],"created_at":"2024-10-10T12:53:23.806Z","updated_at":"2025-04-08T04:28:24.617Z","avatar_url":"https://github.com/leafOfTree.png","language":"JavaScript","readme":"# soure2one\r\n\r\n将源代码整合到一个 markdown 文件，方便打印和阅读。\r\n\r\nConvert all source code to one markdown file, useful to print and read.\r\n\r\n## Usage\r\n\r\n    // generate files in folder \"src\" to \"src.source.md\", ignore __test__\r\n    source2one src -i __test__\r\n\r\n## Install\r\n\r\n    npm install source2one -g\r\n\r\n## Options\r\n\r\n**-i**: ignore files, seprated by `,`\r\n\r\n    source2one src -i *.md,__test__\r\n\r\n-h, --help: show help info\r\n    \r\n## To html/pdf\r\n\r\n[pandoc](https://github.com/jgm/pandoc): markdown to html \r\n\r\n[wkhtmltopdf](https://wkhtmltopdf.org/): html to pdf\r\n\r\n## Example\r\n\r\ntest/core/core.js: \r\n\r\n    core content\r\n\r\ntest/plugin/plugin.js: \r\n\r\n    plugin content\r\n    plugin content2\r\n\r\nAfter running `source2one test`, output `test.source.md`: \r\n\r\n    # test\r\n    generated at 2018-5-14 12:48:17\r\n    \r\n    ## TOC\r\n    \r\n    ⃞ test/core/core.js (lines: 1)\r\n    \r\n    ⃞ test/plugins/plugin.js (lines: 2)\r\n    \r\n    ## Content\r\n    \r\n    test/core/core.js (lines: 1)\r\n    ```\r\n    core content\r\n    ```\r\n    \r\n    test/plugins/plugin.js (lines: 2)\r\n    ```\r\n    plugin content\r\n    plugin content2\r\n    ```\r\n\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafoftree%2Fsource2one","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleafoftree%2Fsource2one","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafoftree%2Fsource2one/lists"}