{"id":17167401,"url":"https://github.com/kward/shlib","last_synced_at":"2025-04-13T15:34:38.562Z","repository":{"id":48998769,"uuid":"103582403","full_name":"kward/shlib","owner":"kward","description":"Useful Shell routines.","archived":false,"fork":false,"pushed_at":"2023-08-18T09:18:58.000Z","size":93,"stargazers_count":22,"open_issues_count":3,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T06:22:52.407Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kward.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2017-09-14T21:14:46.000Z","updated_at":"2024-05-29T16:41:01.000Z","dependencies_parsed_at":"2025-02-23T15:33:07.924Z","dependency_job_id":"1fec798e-15b8-42c7-bca3-e2d93f795fe8","html_url":"https://github.com/kward/shlib","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/kward%2Fshlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kward%2Fshlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kward%2Fshlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kward%2Fshlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kward","download_url":"https://codeload.github.com/kward/shlib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248736052,"owners_count":21153528,"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-14T23:08:39.176Z","updated_at":"2025-04-13T15:34:38.537Z","avatar_url":"https://github.com/kward.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shlib\n\nUseful Shell routines.\n\n[![Travis CI](https://travis-ci.org/kward/shlib.png?branch=master)](https://travis-ci.org/kward/shlib)\n\n## functions\n\nFiles in the `functions` folder provide specific functionality.\n\n- `shlib_ansi` -- Provides functionality for using ANSI color in screen output.\n- `shlib_random` -- Generates a pseudo-random number the best way it can. It is by no means sufficient for security or cyptrography applications.\n- `shlib_relToAbsPath` -- Converts a relative path into an absolute path from\n  the root of the file system.\n\n## standalone\n\nFiles in the `standalone` folder are useful as libraries, or as standalone\nsoftware if the executable bit is set.\n\n- `sgrep` -- Grep a section from a file where records are separated by blank lines. **Note:** This doesn't (yet) work under macOS due to `sed` limitations.\n- `test_runner` -- A unit test suite runner that will execute all `*_test.sh` files in the current directory.\n- `versions` -- Provides reusable functions that determine actual names and\n  versions of installed shells and the OS.\n- `which` -- A version of the `which` command for OSes that don't include one by default.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkward%2Fshlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkward%2Fshlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkward%2Fshlib/lists"}