{"id":15395429,"url":"https://github.com/creemama/shellutil","last_synced_at":"2025-03-15T12:25:48.332Z","repository":{"id":66939122,"uuid":"314965596","full_name":"creemama/shellutil","owner":"creemama","description":"POSIX-compliant shell scripting utility functions","archived":false,"fork":false,"pushed_at":"2023-04-22T21:27:21.000Z","size":61,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T02:47:34.981Z","etag":null,"topics":["posix","shell-scripting"],"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/creemama.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":"2020-11-22T05:20:23.000Z","updated_at":"2023-04-23T09:56:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b61af56-3d0e-4dbc-8157-249173b6b842","html_url":"https://github.com/creemama/shellutil","commit_stats":{"total_commits":37,"total_committers":1,"mean_commits":37.0,"dds":0.0,"last_synced_commit":"159ee99176ff806776f7bf352851d81831a07f0d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creemama%2Fshellutil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creemama%2Fshellutil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creemama%2Fshellutil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creemama%2Fshellutil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/creemama","download_url":"https://codeload.github.com/creemama/shellutil/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243728452,"owners_count":20338261,"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":["posix","shell-scripting"],"created_at":"2024-10-01T15:28:17.856Z","updated_at":"2025-03-15T12:25:48.308Z","avatar_url":"https://github.com/creemama.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shellutil.sh\n\n\u003e POSIX-compliant shell scripting utility functions\n\nInclude `shellutil.sh` as a\n[submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules) of your Git\nrepo by executing the following:\n\n```\n$ git submodule add https://github.com/creemama/shellutil\n```\n\nUse the [dot operator](https://ss64.com/bash/source.html) to include\n`shellutil.sh` in one of your scripts:\n\n```\n#!/bin/sh\n\nscript_dir=\"$(\n\tcd \"$(dirname \"$0\")\"\n\tpwd -P\n)\"\ncd \"$script_dir\"\nif [ ! -f shellutil/shellutil.sh ]; then\n\tgit submodule update --init\nfi\n# shellcheck source=shellutil/shellutil.sh\n. shellutil/shellutil.sh\n# set -o xtrace\n\nprintf '%s%s%s' \"$(tbold)\" 'Hello world!' \"$(treset)\"\n```\n\n## Available Utility Functions\n\n- `is_integer`\n- `is_tty`\n- `tbold`\n- `tcyan`\n- `tgray`\n- `tgreen`\n- `tred`\n- `treset`\n- `tyellow`\n- `test_command_exists`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreemama%2Fshellutil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcreemama%2Fshellutil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreemama%2Fshellutil/lists"}