{"id":28159600,"url":"https://github.com/crazyyy/modsentry","last_synced_at":"2025-05-15T10:11:13.241Z","repository":{"id":293004989,"uuid":"982631524","full_name":"crazyyy/ModSentry","owner":"crazyyy","description":"ModSentry is a lightweight PowerShell module that keeps all your local modules up to date with the PowerShell Gallery 📦.","archived":false,"fork":false,"pushed_at":"2025-05-13T07:42:33.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T08:30:31.167Z","etag":null,"topics":["powershell","powershell-module","powershell-script"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crazyyy.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,"zenodo":null}},"created_at":"2025-05-13T07:18:27.000Z","updated_at":"2025-05-13T07:42:36.000Z","dependencies_parsed_at":"2025-05-13T08:32:27.963Z","dependency_job_id":"59e280c4-7cf0-4c30-b8bf-b7f93fe31fe4","html_url":"https://github.com/crazyyy/ModSentry","commit_stats":null,"previous_names":["crazyyy/modsentry"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyyy%2FModSentry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyyy%2FModSentry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyyy%2FModSentry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyyy%2FModSentry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazyyy","download_url":"https://codeload.github.com/crazyyy/ModSentry/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254319720,"owners_count":22051075,"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":["powershell","powershell-module","powershell-script"],"created_at":"2025-05-15T10:11:11.824Z","updated_at":"2025-05-15T10:11:13.226Z","avatar_url":"https://github.com/crazyyy.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ModSentry 🔧🚀\n\nModSentry is a PowerShell module designed to streamline the management of PowerShell modules in a specified directory. It checks for newer versions of modules in the PowerShell Gallery (PSGallery), updates outdated modules, and allows you to exclude specific modules from the update process.\n\n## Features ✨\n\n- 🔄 Automatically updates itself via Git (`git pull`)\n- 📁 Scans a specified folder for installed modules\n- ⬆️ Checks for newer versions in PSGallery\n- ❌ Skips excluded modules by name\n- ✅ Color-coded output for better readability\n\n- **Scan and Update**: Scans a local directory for PowerShell modules and updates them to the latest version available in PSGallery.\n- **Exclude Modules**: Specify modules to skip during the update process.\n- **Error Handling**: Provides detailed feedback on successes, skips, and errors during the update process.\n- **Customizable Path**: Allows you to define the directory containing the modules to be checked.\n\n## Usage 💻\n\n```powershell\n# Import the module\nImport-Module ./ModSentry.psm1\n\n# Run the update function\nUpdate-PowerShellModules\n```\n\n## Requirements\n- PowerShell 5.1 or later\n- Access to the PowerShell Gallery (PSGallery)\n- Write permissions to the specified modules directory\n\n## Installation\n1. Download the `ModSentry.psm1` file from the [releases page](#).\n2. Place it in a directory listed in your `$PSModulePath` (e.g., `C:\\Program Files\\WindowsPowerShell\\Modules\\ModSentry`).\n3. Import the module using:\n   ```powershell\n   Import-Module ModSentry\n   ```\n\n### Example\n```powershell\nUpdate-PowerShellModules -ModulesPath \"D:\\apps\\PowerShell\\Modules\" -ExcludedModules @(\"PowerShellAI\", \"Pansies\")\n```\n\n### Parameters\n- **ModulesPath**: The directory containing the PowerShell modules to check and update. Default: `D:\\apps\\PowerShell\\Modules`.\n- **ExcludedModules**: An array of module names to exclude from updates. Default: A predefined list of common modules.\n\n### Output\nThe function outputs:\n- The directory being scanned.\n- Status for each module (skipped, up-to-date, updated, or error).\n- A summary of the total modules checked and updated.\n\n## Example Output\n```\nScanning for modules in directory: D:\\apps\\PowerShell\\Modules\nSkipping excluded module: PowerShellAI\nModule PSReadLine is already up to date (version 2.2.6).\nUpdating PSScriptAnalyzer: 1.20.0 -\u003e 1.21.0\nPSScriptAnalyzer updated to version 1.21.0.\nUpdate complete. Modules checked: 10, updated: 1.\n```\n\n## Contributing\nContributions are welcome! Please submit a pull request or open an issue on the [GitHub repository](#).\n\n## License\nThis project is licensed under the MIT License. See the [LICENSE](#) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyyy%2Fmodsentry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazyyy%2Fmodsentry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyyy%2Fmodsentry/lists"}