{"id":34720319,"url":"https://github.com/sneekyfoxx/zap","last_synced_at":"2026-05-22T20:05:32.462Z","repository":{"id":218373948,"uuid":"746255462","full_name":"sneekyfoxx/zap","owner":"sneekyfoxx","description":"Zap is a Linux command line utility written in Nim","archived":false,"fork":false,"pushed_at":"2024-02-17T07:28:07.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T08:13:32.271Z","etag":null,"topics":["command-line-utility","nim"],"latest_commit_sha":null,"homepage":"","language":"Nim","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sneekyfoxx.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-01-21T14:35:51.000Z","updated_at":"2024-01-31T03:19:18.000Z","dependencies_parsed_at":"2024-02-17T08:27:44.684Z","dependency_job_id":"7398c994-350f-4da6-9980-633996319e37","html_url":"https://github.com/sneekyfoxx/zap","commit_stats":null,"previous_names":["sneekyfoxx/zap"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sneekyfoxx/zap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sneekyfoxx%2Fzap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sneekyfoxx%2Fzap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sneekyfoxx%2Fzap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sneekyfoxx%2Fzap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sneekyfoxx","download_url":"https://codeload.github.com/sneekyfoxx/zap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sneekyfoxx%2Fzap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33364337,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T12:23:38.849Z","status":"online","status_checked_at":"2026-05-22T02:00:06.671Z","response_time":265,"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":["command-line-utility","nim"],"created_at":"2025-12-25T01:45:27.264Z","updated_at":"2026-05-22T20:05:32.456Z","avatar_url":"https://github.com/sneekyfoxx.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"                                        ███████╗_█████╗_██████╗_\n                                        ╚══███╔╝██╔══██╗██╔══██╗\n                                        __███╔╝_███████║██████╔╝\n                                        _███╔╝__██╔══██║██╔═══╝_\n                                        ███████╗██║__██║██║_____\n                                        ╚══════╝╚═╝__╚═╝╚═╝_____\n                                 ⚡ zap characters from text with ease\n\n## About\n\n**Zap** is a command line utility which combines the basic functionalities of two well known command line utilities, **cut** and **tr**. Zap doesn't have all the functionalities of *cut* or *tr* because it isn't meant to replace them. **Zap** was created to make slicing strings in the terminal a little bit easier. **Zap** removes all escape characters and truncates all spaces by default reducing the number of zaps, cuts, and translations in the process.\n\n## Similarities To *cut*\n\n- slice strings based on a given delimiter\n- select a one or more fields (range in zap)\n\n## Similarities To *tr*\n\n- character truncation (default in zap)\n- ANSII escape character deletion (not including hex and octal)\n- character replacement (injection in zap)\n\n\n## Why use *Zap*?\n\nSome of the benefits of using **Zap** is that it can help reduce the number of times *cut* and *tr* may need to be executed. Example: `\"some text\" | zap -d:\":\" -l | grep -E 'something'`. The previous example removes all ASCII escape sequences as well as the ':' character, gets the last field, and sends the output to grep. In many cases you may find yourself using *zap* inplace of *cut*.\n\n## Usage Information\n\n- **zap** *-d:TEXT* [*-i:TEXT* | *-g:POS* | *-r:START,STOP*] [*-f* | *-l*] TEXT\n- TEXT | **zap** *-d:TEXT* [*-i:TEXT* | *-g:POS* | *-r:START,STOP*] [*-f* | *-l*]\n\n## Usage Examples\n\n``` bash\n$ example=\"This is some\\nexample text\\tfor testing the zap utility\\0\"\n$ zap -d:'example' -i:'actual'\nThis is some actual text for testing the zap utility\n$\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsneekyfoxx%2Fzap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsneekyfoxx%2Fzap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsneekyfoxx%2Fzap/lists"}