{"id":17349272,"url":"https://github.com/co2-git/lib","last_synced_at":"2025-06-18T09:36:05.133Z","repository":{"id":7453278,"uuid":"8796917","full_name":"co2-git/lib","owner":"co2-git","description":"A bash utility framework","archived":false,"fork":false,"pushed_at":"2013-05-26T16:36:27.000Z","size":304,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T11:44:50.021Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"fatih/color","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/co2-git.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-15T10:37:38.000Z","updated_at":"2016-10-08T11:22:39.000Z","dependencies_parsed_at":"2022-09-10T01:40:52.113Z","dependency_job_id":null,"html_url":"https://github.com/co2-git/lib","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/co2-git/lib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co2-git%2Flib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co2-git%2Flib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co2-git%2Flib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co2-git%2Flib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/co2-git","download_url":"https://codeload.github.com/co2-git/lib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co2-git%2Flib/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260528267,"owners_count":23022906,"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-15T16:55:12.636Z","updated_at":"2025-06-18T09:36:00.100Z","avatar_url":"https://github.com/co2-git.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lib \n===\n\nA command line framework in bash offering a set of utilities/helpers to ease coding in bash.\n\n## About\n\nlib offers a set of functions in bash that are helpers that can be called from the terminal or be included in the scope of a bash script. For better usability, functions are ordered by namespsaces.\n\n## Usage\n\n    lib \u003cfunction-name\u003e [\u003cfunction-arguments\u003e...]\n    lib --all # view all functions\n    lib --all --namespace  # view all namespaces\n    lib --all --namespace Regex # view all functions under the namespace Regex\n    lib --all Array.join # view documentation for specific function (here Array.join)\n\n\n## Terminal user story\n\ndude@machine ~ $ `lib Text bold This text will be output in bold\\!`\n\n## Script integration user story\n\n    #!/bin/bash\n\n    ## Import lib into your script's scope\n\n    lib --import\n\n    ## Now you call any lib function you want, it will be called within the process\n\n    lib test This is a test\n    lib Text color green This text will appear in green\n    lib Array join , 1 2 3 4\n\n## Installation\n\n### As sudo (global install)\n\n    git clone https://github.com/co2-git/lib.git\n    sudo ln -s lib/lib.sh /usr/bin/lib\n    \n### Local install\n    git clone https://github.com/co2-git/lib.git\n    echo \"alias lib='/path/to/lib/lib.sh'\" \u003e\u003e ~/.bashrc\n    source ~/.bashrc\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fco2-git%2Flib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fco2-git%2Flib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fco2-git%2Flib/lists"}