{"id":13942463,"url":"https://github.com/jfromaniello/pswatch","last_synced_at":"2025-10-25T12:44:19.901Z","repository":{"id":1831465,"uuid":"2755770","full_name":"jfromaniello/pswatch","owner":"jfromaniello","description":"Powershell cmdlet to monitor file changes in a directory tree. ","archived":false,"fork":false,"pushed_at":"2019-12-03T17:45:33.000Z","size":97,"stargazers_count":82,"open_issues_count":5,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-14T08:12:43.839Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"wandenberg/nginx-push-stream-module","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jfromaniello.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":"2011-11-11T12:55:19.000Z","updated_at":"2024-10-10T01:43:38.000Z","dependencies_parsed_at":"2022-09-07T11:50:50.389Z","dependency_job_id":null,"html_url":"https://github.com/jfromaniello/pswatch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jfromaniello/pswatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfromaniello%2Fpswatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfromaniello%2Fpswatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfromaniello%2Fpswatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfromaniello%2Fpswatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jfromaniello","download_url":"https://codeload.github.com/jfromaniello/pswatch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfromaniello%2Fpswatch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264567035,"owners_count":23629297,"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-08-08T02:01:52.963Z","updated_at":"2025-10-25T12:44:14.859Z","avatar_url":"https://github.com/jfromaniello.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"This powershell cmdlet continuously monitors a directory tree and write to the output the path of the file that has changed.\n\nThis allows you to create an script that for instance, run a suite of unit tests when an specific file has changed using powershell pipelining.\n\nInstallation\n============\n\nDownload the psm1 file in My documents\\WindowsPowershell\\Modules\\pswatch or simply run this one line installation script:\n\n\tiex ((new-object net.webclient).DownloadString(\"http://bit.ly/Install-PsWatch\"))\n\nUsage\n=====\n\nA simple example will be:\n\n\tImport-Module pswatch\n\n\twatch \"Myfolder\\Other\" | %{\n\t\tWrite-Host \"$_.Path has changed!\"\n\t\tRunUnitTests.exe $_.Path\n\t}\n\nYou can filter by using powershell pipelining as follows:\n\n\twatch | Get-Item | Where-Object { $_.Extension -eq \".js\" } | %{\n\t\tdo the magic...\n\t}\n\nOptions\n=======\n\nThe wacth cmdlet has the following parameters:\n\n  * location: the directory to watch. Optional, default to current directory.\n  * includeSubdirectories: default to true.\n  * includeChanged: default to true.\n  * includeRenamed: default to true.\n  * includeCreated: default to true.\n  * includeDeleted: default to false.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfromaniello%2Fpswatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjfromaniello%2Fpswatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfromaniello%2Fpswatch/lists"}