{"id":22899025,"url":"https://github.com/startautomating/wherefor","last_synced_at":"2026-02-11T13:01:56.082Z","repository":{"id":267047497,"uuid":"900111759","full_name":"StartAutomating/WhereFor","owner":"StartAutomating","description":"Wherefore Art Thou PowerShell? Multiple Object Pipelines","archived":false,"fork":false,"pushed_at":"2024-12-08T22:18:13.000Z","size":81,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-14T17:17:54.224Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","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/StartAutomating.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["StartAutomating"]}},"created_at":"2024-12-07T22:23:42.000Z","updated_at":"2025-05-21T04:33:47.000Z","dependencies_parsed_at":"2024-12-08T00:17:00.841Z","dependency_job_id":"048922ab-c5f9-48c7-a75f-ad07ada0d44e","html_url":"https://github.com/StartAutomating/WhereFor","commit_stats":null,"previous_names":["startautomating/wherefor"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/StartAutomating/WhereFor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StartAutomating%2FWhereFor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StartAutomating%2FWhereFor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StartAutomating%2FWhereFor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StartAutomating%2FWhereFor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StartAutomating","download_url":"https://codeload.github.com/StartAutomating/WhereFor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StartAutomating%2FWhereFor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29333155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T12:42:24.625Z","status":"ssl_error","status_checked_at":"2026-02-11T12:41:23.344Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-12-14T00:35:41.149Z","updated_at":"2026-02-11T13:01:56.064Z","avatar_url":"https://github.com/StartAutomating.png","language":"PowerShell","readme":"\u003cdiv align='center'\u003e\n    \u003cimg alt='WhereFor Logo (Animated)' style='width:50%' src='Assets/WhereFor-animated.svg' /\u003e\n\u003c/div\u003e\n\n# WhereFor\nWherefore Art Thou PowerShell? Multiple Object Pipelines\n\n\n## What Is WhereFor?\n\nWhereFor is a small PowerShell module that combines Where-Object and Foreach-Object into a single useful command, `Get-WhereFor`.\n\nUsing WhereFor, it's simple and straightforward to check for multiple conditions in a single pipeline, thus avoiding repeated passes over the same data.\n\n### Installing and Importing\n\nYou can install WhereFor from the PowerShell Gallery with Install-Module:\n\n~~~PowerShell\nInstall-Module WhereFor -Scope CurrentUser\n~~~\n\nAfter installation, you can import the module by name:\n\n~~~PowerShell\nImport-Module WhereFor\n~~~\n\n### Examples\n\n#### Get-WhereFor Example 1\n\n~~~PowerShell\n1..3 | ?% @{\n    {$_ % 2} = {\"$_ is odd\"}\n    {-not ($_ %2)}={\"$_ is even\"}\n}\n~~~\n #### Get-WhereFor Example 2\n\n~~~PowerShell\nGet-Process | \n    WhereFor @{\n        { $_.Handles -gt 1kb } = { \"$($_.Name) [ $($_.Id) ] has $($_.handles) open handles \" }\n        { $_.WorkingSet -gt 1gb } = { \"$($_.Name) [ $($_.Id) ] is using $($_.WorkingSet) of memory\" }\n    }\n~~~\n #### Get-WhereFor Example 3\n\n~~~PowerShell\n\"the quick brown fox jumped over the lazy dog\" -split '\\s' | \n    Get-WhereFor ([Ordered]@{\n        { $_ } =\n            { \"Word: $_\"; \"Length: $($_.Length)\" }\n        { $_ -match '[aeiou]' } =\n            { \"Vowels: $($_.ToCharArray() -match '[aeiou]')\" }\n        { $_ -match '[^aeiou]' } =\n            { \"Consonant: $($_.ToCharArray() -match '[^aeiou]')\" }\n    })\n~~~\n\n\n### How It Works\n\nPowerShell is full of interesting features that are not broadly understood.  \n\nWhereFor is built using one of these features, the [steppable pipeline](https://learn.microsoft.com/en-us/dotnet/api/system.management.automation.steppablepipeline?view=powershellsdk-7.4.0\u0026wt.mc_id=MVP_321542).\n\nSteppablePipelines allow you to run one more object pipelines step by step.\n\nWhereFor works in a very simple way.  You provide one or more dictionaries or hashtables to WhereFor, and it creates a steppable pipeline for each condition and value.\n\nIf the condition returned a value, the action is run.\n\n","funding_links":["https://github.com/sponsors/StartAutomating"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstartautomating%2Fwherefor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstartautomating%2Fwherefor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstartautomating%2Fwherefor/lists"}