{"id":20990784,"url":"https://github.com/hubcio/stdin2file","last_synced_at":"2025-10-04T02:12:48.186Z","repository":{"id":161540253,"uuid":"306164690","full_name":"hubcio/stdin2file","owner":"hubcio","description":"A kind of tee-like program which writes stdin to file, and optionally compresses it using multiple threads.","archived":false,"fork":false,"pushed_at":"2024-07-25T17:13:12.000Z","size":56,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-14T20:41:51.707Z","etag":null,"topics":["cat","compression","stdin","tee"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/hubcio.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-21T22:42:12.000Z","updated_at":"2025-03-22T15:00:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"84d62399-98d6-44cf-92e0-edee6509a108","html_url":"https://github.com/hubcio/stdin2file","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/hubcio/stdin2file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hubcio%2Fstdin2file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hubcio%2Fstdin2file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hubcio%2Fstdin2file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hubcio%2Fstdin2file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hubcio","download_url":"https://codeload.github.com/hubcio/stdin2file/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hubcio%2Fstdin2file/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278254466,"owners_count":25956604,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cat","compression","stdin","tee"],"created_at":"2024-11-19T06:35:28.738Z","updated_at":"2025-10-04T02:12:48.170Z","avatar_url":"https://github.com/hubcio.png","language":"Rust","readme":"\n# stdin2file\n\nA kind of tee-like program which writes stdin to file, and\noptionally compresses it using multiple threads.\n\n## Installation\n\nArchives of precompiled binaries are available for Linux.\n\nOther way is to clone project and compile it yourself.\n\n## Usage\n\n```sh\nstdin2file 1.2\nhugruu \u003ch.gruszecki@gmail.com\u003e\nWrite from stdin to file(s), optionally compresses it using given algorithm\n\nUSAGE:\n    stdin2file [OPTIONS] --chunk \u003cchunk\u003e --output \u003coutput\u003e\n\nOPTIONS:\n    -c, --chunk \u003cchunk\u003e            Maximum size of single file size [MB]\n    -e, --execute \u003cexecute\u003e        Command to execute (instead of stdin) - CURRENTLY UNSUPPORTED\n    -h, --help                     Print help information\n    -m, --max-files \u003cmax-files\u003e    Number of rotated files\n    -o, --output \u003coutput\u003e          Output file\n    -s, --compress \u003ccompress\u003e      Compression algorithm [possible values: xz, gz]\n    -V, --version                  Print version information\n```\n\n## Examples\n\nCopy stdin to 5 rotating files, each 1 MB before compression, and compress them:\n\n```sh\ncommand | stdin2file -c 1 -m 5 -o test -s xz\n```\n\nSplit 10 MiB text file using above settings:\n\n```sh\nbase64 /dev/urandom | head -c 10000000 | stdin2file -c 1 -m 5 -o test -s xz\n```\n\nThis will result in 5 files:\n\n```sh\n$ ls -la\ntotal 3600\n-rw-rw-r-- 1 gruszeck gruszeck 806680 Feb  5 18:14 test.5.xz\n-rw-rw-r-- 1 gruszeck gruszeck 806532 Feb  5 18:14 test.6.xz\n-rw-rw-r-- 1 gruszeck gruszeck 806952 Feb  5 18:14 test.7.xz\n-rw-rw-r-- 1 gruszeck gruszeck 806504 Feb  5 18:14 test.8.xz\n-rw-rw-r-- 1 gruszeck gruszeck 433092 Feb  5 18:14 test.9.xz\n```\n\n## Possible improvements\n\n* Add support for lzma, gzip or other algorithms\n* Pass command as argument instead of pipe\n* Add pipeline\n\n## License\n\n[https://en.wikipedia.org/wiki/WTFPL](https://en.wikipedia.org/wiki/WTFPL).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubcio%2Fstdin2file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhubcio%2Fstdin2file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubcio%2Fstdin2file/lists"}