{"id":23908542,"url":"https://github.com/mandober/typeof","last_synced_at":"2026-05-17T17:34:45.838Z","repository":{"id":156251955,"uuid":"102875100","full_name":"mandober/typeof","owner":"mandober","description":"typeof - variable typing and dumping for bash","archived":false,"fork":false,"pushed_at":"2017-09-09T19:34:49.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-07T02:46:56.240Z","etag":null,"topics":["bash"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mandober.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-08T15:18:41.000Z","updated_at":"2021-05-29T22:24:26.000Z","dependencies_parsed_at":"2023-05-21T18:30:29.990Z","dependency_job_id":null,"html_url":"https://github.com/mandober/typeof","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mandober/typeof","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandober%2Ftypeof","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandober%2Ftypeof/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandober%2Ftypeof/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandober%2Ftypeof/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mandober","download_url":"https://codeload.github.com/mandober/typeof/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandober%2Ftypeof/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33147628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bash"],"created_at":"2025-01-05T04:38:45.081Z","updated_at":"2026-05-17T17:34:45.624Z","avatar_url":"https://github.com/mandober.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n`typeof` - variable typing and dumping\n\n\n## SYNOPSIS\n`typeof [-b|--brief] NAME`\n\n\n## DESCRIPTION\nType NAME as indexed array, associative array or variable. Dump indexed and associative arrays and variables along with their attributes. A NAME is first passed to `type` bash builtin that will return `alias`, `keyword`, `function`, `builtin` or `file` if NAME is one of these. If not, NAME is presumed to be a variable: `indexed` or `associative` is returned if it is an array, `scalar` oterwise.\n\n\n## OPTIONS\n`-b, --brief`    \nonly the type, as a single string, is returned. Returned types:\n- `scalar`\n- `indexed` (indexed array)\n- `associative` (associative array)\n- `alias`\n- `keyword`\n- `function`\n- `builtin`\n- `file`    \nWithout this option, output is more verbose.   \n\n\n## OPERANDS\n`NAME`\nParameter NAME can be anything: variable's name, identifier, shell keyword, \n\n\n## STDOUT\nPrint results.    \nHelp, usage, version (to STOUT only if explicitly requested).\n\n\n## STDERR\nError messages, help and usage.\n\n\n## RETURN STATUS\n0  success\n1  failure\n2  NAME is not anything significant\n\n\n## EXAMPLES\n\n````shell\n$ typeof -b BASH_VERSINFO\nindexed\n\n$ typeof -b BASH_ALIASES\nassociative\n\n$ typeof BASH_VERSINFO\n    Name: BASH_VERSINFO\n    Type: indexed array [6]\t\t# [6] - number of elements\n   Value:\n     [0]: 4 [1]\t\t\t\t# [1] - length of an element\n     [1]: 3 [1]\n     [2]: 42 [2]\n     [3]: 4 [1]\n     [4]: release [7]\n     [5]: x86_64 [6]\n    Attr: -r (readonly)\n\n$ typeof BASH_ALIASES\n   Name: BASH_ALIASES\n   Type: associative array [4]\n  Value:\n     [la]: ls -la    [6]\n   [cd..]: cd ..     [5]\n  [unset]:           [0]\t# null value\n     [sv]: sudo vim  [8]\n   \n$ typeof UID\n   Name: UID\n   Type: variable\n  Value: 101  \t\t[3]\n   Attr: \n       -i (integer)\n       -r (readonly)\n````\n\n\n## SEE ALSO\n[barf](https://github.com/mandober/barf) - bash array-related functions.\n\n\n### ID TAG\n```\n   FILE: typeof\n   TYPE: bash function\n    WEB: https://github.com/mandober/typeof\n AUTHOR: Ilic Ivan \u003cilicivan@zoho.com\u003e\nLICENSE: MIT\n   DATE: 09-Sep-2017 (last revision)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandober%2Ftypeof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmandober%2Ftypeof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandober%2Ftypeof/lists"}