{"id":20285842,"url":"https://github.com/tpkn/is_in","last_synced_at":"2026-05-07T20:46:19.406Z","repository":{"id":74204165,"uuid":"395472929","full_name":"tpkn/is_in","owner":"tpkn","description":"A CLI tool for checking whether the parameters from first string are present in second string","archived":false,"fork":false,"pushed_at":"2023-03-29T23:38:20.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-14T08:12:54.029Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/tpkn.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":"2021-08-13T00:03:11.000Z","updated_at":"2021-12-11T00:46:46.000Z","dependencies_parsed_at":"2024-11-14T14:32:04.523Z","dependency_job_id":null,"html_url":"https://github.com/tpkn/is_in","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Fis_in","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Fis_in/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Fis_in/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Fis_in/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpkn","download_url":"https://codeload.github.com/tpkn/is_in/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241780514,"owners_count":20019061,"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-11-14T14:29:11.773Z","updated_at":"2026-05-07T20:46:14.385Z","avatar_url":"https://github.com/tpkn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Is in\r\nA CLI tool for checking whether the parameters from first string are present in second string\r\n\r\n## Usage\r\n\r\n```text\r\nis_in [-options] \u003cstring1\u003e \u003cstring2\u003e\r\n```\r\n\r\n## Options\r\n\r\n```text\r\n  -i, --ignorecase  Ignore case (default: false)\r\n  -d, --delimiter   Parameters delimiter (default: \",\")\r\n  -p, --prepare     Prepare parameters before comparison (default: false): trim spaces and replace wrapping single/double quotes\r\n  -w, --why         Print comparsison details (default: false)\r\n  --help            Help\r\n  --version         Print current version\r\n```\r\n\r\n\r\n## Shell usage\r\n```shell\r\nis_in \",f,g,b , ,c\" \"a,b,c\"\r\n# =\u003e \"false\"\r\n\r\nis_in -why \",f,g,b , ,c\" \"a,b,c\"\r\n# =\u003e\r\n# Failed because:\r\n# 1. 'f' is missing\r\n# 2. 'g' is missing\r\n# 3. 'b ' is missing\r\n```\r\n\r\n```shell\r\nok=$(is_in -p \"a, b, c\" \"d,c\")\r\nif [ \"$ok\" = \"false\" ]; then\r\n   echo \"Error!\"\r\n   exit\r\nfi\r\n```\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpkn%2Fis_in","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpkn%2Fis_in","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpkn%2Fis_in/lists"}