{"id":17114915,"url":"https://github.com/bartfeenstra/krab","last_synced_at":"2025-08-12T17:41:56.944Z","repository":{"id":150416343,"uuid":"139464556","full_name":"bartfeenstra/krab","owner":"bartfeenstra","description":"🦀 Bad-ass shell tools to make life easy","archived":false,"fork":false,"pushed_at":"2020-09-24T17:54:57.000Z","size":73,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T23:44:55.856Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/bartfeenstra.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,"publiccode":null,"codemeta":null}},"created_at":"2018-07-02T16:00:34.000Z","updated_at":"2020-09-24T17:52:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff145849-40dc-4497-a856-ab0a1ee8b192","html_url":"https://github.com/bartfeenstra/krab","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/bartfeenstra/krab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartfeenstra%2Fkrab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartfeenstra%2Fkrab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartfeenstra%2Fkrab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartfeenstra%2Fkrab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bartfeenstra","download_url":"https://codeload.github.com/bartfeenstra/krab/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartfeenstra%2Fkrab/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270108428,"owners_count":24528759,"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-08-12T02:00:09.011Z","response_time":80,"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":[],"created_at":"2024-10-14T17:20:53.599Z","updated_at":"2025-08-12T17:41:56.910Z","avatar_url":"https://github.com/bartfeenstra.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Krab\n\n[![Build Status](https://travis-ci.org/bartfeenstra/krab.svg?branch=master)](https://travis-ci.org/bartfeenstra/krab)\n\nKrab is a collection of shell functions that I find useful.\n\n## Usage\n\n```bash\n$ ./bin/krab -h\nUsage: $ krab [OPTION] [COMMAND]\n\nCOMMAND is one of:\n    - envsubst\n    - migrate\n    - run\n    - semver-components\n    - semver-validate\n    - stdio-alert\n    - stdio-confirm\n    - stdio-inform\n    - stdio-state\n    - time\n\nOPTION is one or more of the following:\n    -h  Show this message.\n```\n\n### Requirements\n\n- Bash\n\n## Features \u0026 use cases\n\n### Notifications\nFormatted notifications can be sent to `stderr` using the `stdio-*` commands. To display an error, run\n`krab stdio-alert 'Something went wrong!'`.\n\n### Templating\n`krab envsubst` substitutes environment variables in its `stdin` using a syntax familiar from web templating engines,\navoiding the dollar sign (`$`) in shell variable notation, which is often a special character. To make your shell greet\nyou, run `echo 'Hi there, {{ USER }}!' | ./bin/krab envsubst`.\n\n### Test runner\nIf your tests are all executable files in a `./tests` directory, you can run them using\n`find ./tests -print0 | xargs -0 ./bin/krab run -l`. Say `./tests` contains other files such as test asserts as well,\nand you want to run your tests in order, you can prefix them with a number, and add an extension like `01-linter.test`\nand run `find ./tests -type f -name '*.test' -print0 | sort -z | xargs -0 krab run -l`.\n\n### Timing \u0026 benchmarks\nTo time or benchmark the execution of a command, use `time -i X`, where `X` is the number of iterations you want the\ncommand to be run. The output is similar to the UNIX `time` command, but all times are averaged across the iterations.\nExample:\n```\n$ ./bin/krab time -i 3 sleep 3\nAverage run times across 3 iteration(s):\nReal: 3.000 seconds\nUser: 0.000 seconds\nSys: 0.000 seconds\n```\n\n## Development\n\n### Requirements\n\n- [ShellCheck](https://github.com/koalaman/shellcheck/#installing)\n- Git\n\n### Building\n\nRun `./bin/build-dev`.\n\n### Testing\n\nRun `./bin/test`.\n\n### Releasing a new version\n\nRun `./bin/release $VERSION` where `$VERSION` is a valid [Semantic Version](https://semver.org/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbartfeenstra%2Fkrab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbartfeenstra%2Fkrab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbartfeenstra%2Fkrab/lists"}