{"id":17680778,"url":"https://github.com/bararchy/text-parser","last_synced_at":"2025-03-30T19:13:11.234Z","repository":{"id":32634077,"uuid":"36220216","full_name":"bararchy/text-parser","owner":"bararchy","description":"Crystal Lib for Text parsing","archived":false,"fork":false,"pushed_at":"2017-10-24T10:22:01.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-05T21:36:42.075Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Crystal","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/bararchy.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":"2015-05-25T08:47:40.000Z","updated_at":"2018-05-23T09:26:42.000Z","dependencies_parsed_at":"2022-07-12T15:40:32.581Z","dependency_job_id":null,"html_url":"https://github.com/bararchy/text-parser","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/bararchy%2Ftext-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bararchy%2Ftext-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bararchy%2Ftext-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bararchy%2Ftext-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bararchy","download_url":"https://codeload.github.com/bararchy/text-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246365645,"owners_count":20765546,"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-24T09:08:48.505Z","updated_at":"2025-03-30T19:13:11.206Z","avatar_url":"https://github.com/bararchy.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# text-parser\n\nThe text-parse lib is a part of another project of mine (https://github.com/bararchy/mos_game).\nI decided to export it so I can use it in another projects.\n\nThe point of this lib is to get String data, parse it using specific symbols, and print it to the console in colors, bold, and you can even print it inside a box.\n\n## Installation\n\nAdd it to `Projectfile`\n\n```crystal\ndeps do\n  github \"bararchy/text-parser\"\nend\n```\n\n## Usage\n\n```crystal\nrequire \"text-parser\"\n\n## Pass String from file:\nText::Parser::Box.parse(File.read(\"./data/prologue.en/prologue_2.data\"), STDOUT)\n\n## Pass String as object\nText::Parser::Box.parse(data, STDOUT)\n\n## Both examples will output something along those line:\n```\n![](https://sc-cdn.scaleengine.net/i/fe0fa0a258eecc6b6af37b97287b55b11.png)\n\n\nThe color codes are:\n```\n##color\n\nas in:\ntext##red\n\nwill output the word \"text\" ind red\n```\nRight now the supported colors are:\n```\n##blue\n##red\n##yellow\n##green\n##bold\n(enter)\noptions(a,b)\n```\n\n## Development\n\n* Add more marks\n* Improve options() parse to allow multiple options\n* Maybe try working using Cruses ? (or maybe not)\n\n## Contributing\n\n1. Fork it ( https://github.com/bararchy/text-parser/fork )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n\n## Contributors\n\n- [bararchy](https://github.com/bararchy) bararchy - Creator, Maintainer\n- [jhass](https://github.com/jhass) jhass - Contributer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbararchy%2Ftext-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbararchy%2Ftext-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbararchy%2Ftext-parser/lists"}