{"id":17131051,"url":"https://github.com/jac18281828/trimtrain","last_synced_at":"2025-03-24T05:12:35.595Z","repository":{"id":225416881,"uuid":"765872973","full_name":"jac18281828/trimtrain","owner":"jac18281828","description":"TrimTrain is a simple command line utility to cleanup spaces in lines of input text","archived":false,"fork":false,"pushed_at":"2024-03-01T23:52:09.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-29T10:49:51.075Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jac18281828.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}},"created_at":"2024-03-01T19:39:56.000Z","updated_at":"2024-03-01T23:40:46.000Z","dependencies_parsed_at":"2024-03-02T00:45:45.662Z","dependency_job_id":null,"html_url":"https://github.com/jac18281828/trimtrain","commit_stats":null,"previous_names":["jac18281828/trimtrain"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jac18281828%2Ftrimtrain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jac18281828%2Ftrimtrain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jac18281828%2Ftrimtrain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jac18281828%2Ftrimtrain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jac18281828","download_url":"https://codeload.github.com/jac18281828/trimtrain/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245212298,"owners_count":20578443,"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":[],"created_at":"2024-10-14T19:13:52.835Z","updated_at":"2025-03-24T05:12:35.577Z","avatar_url":"https://github.com/jac18281828.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trimtrain\n\n`trimtrain` is a Unix command-line utility written in C++ designed to normalize input columns of data, converting multiple spaces or tabs into a single space separator. This tool is useful for data scientists, developers, or anyone working with text files that require uniform spacing for proper alignment for further processing.\n\n`trimtrain` is designed to be chained in pipelines with other unix tools\n\n## Table of Contents\n\n- [Installing](#installing)\n- [Building](#building)\n- [Usage](#usage)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Installing\n\nBefore building `trimtrain`, ensure you have a C++ compiler (such as g++) and `cmake` installed on your system.\n\nClone the `trimtrain` repository from GitHub:\n\n```sh\ngit clone https://github.com/jac18281828/trimtrain.git\ncd trimtrain\n```\n\n## Building\n\n`trimtrain` uses a Makefile for easy compilation. To build the program, navigate to the cloned directory and use the `make` command:\n\n```sh\nmkdir -p build\ncmake -H. -Bbuild -DPROJECT_NAME=trimtrain -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_VERBOSE_MAKEFILE=on -Wno-dev \"-GUnix Makefiles\"\nmake -j\n```\n\nThis will compile the source code into an executable named `trimtrain`. To install `trimtrain` into your system's standard executable path, use:\n\n```sh\nsudo make install\n```\n\n## Usage\n\nAfter installation, you can run `trimtrain` by piping input into it or specifying an input file. Here are some examples:\n\nTo normalize a file and output to standard output:\n\n```sh\ntrimtrain \u003c inputfile.txt\n```\n\nTo normalize a file and save the output to another file:\n\n```sh\ntrimtrain \u003c inputfile.txt \u003e outputfile.txt\n```\n\n## Contributing\n\nContributions to `trimtrain` are welcome! Here are some ways you can contribute:\n\n- Reporting bugs\n- Suggesting enhancements\n- Adding new features\n- Improving documentation\n\n## License\n\n`trimtrain` is released under the BSD-3-Clause [LICENSE](https://github.com/jac18281828/trimtrain/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjac18281828%2Ftrimtrain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjac18281828%2Ftrimtrain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjac18281828%2Ftrimtrain/lists"}