{"id":19055412,"url":"https://github.com/evotecit/psparsehtml","last_synced_at":"2025-04-24T04:20:50.923Z","repository":{"id":40575463,"uuid":"201675631","full_name":"EvotecIT/PSParseHTML","owner":"EvotecIT","description":"PSParseHTML is PowerShell module that's main purpose is to be a helper module for PSWriteHTML. However it's functionality can be utilized in other projects, not related to PSWriteHTML, therefore it's available as a separate module.","archived":false,"fork":false,"pushed_at":"2024-02-19T17:56:03.000Z","size":12083,"stargazers_count":82,"open_issues_count":2,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-18T12:18:44.224Z","etag":null,"topics":["css","hacktoberfest","html","javascript","powershell","pswritehtml"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"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/EvotecIT.png","metadata":{"files":{"readme":"README.MD","changelog":"CHANGELOG.MD","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"PrzemyslawKlys","custom":["https://paypal.me/PrzemyslawKlys"]}},"created_at":"2019-08-10T19:45:07.000Z","updated_at":"2025-04-07T11:25:18.000Z","dependencies_parsed_at":"2023-02-16T01:16:02.897Z","dependency_job_id":"340ee9c8-a787-4d2a-9ae7-265f562bb0af","html_url":"https://github.com/EvotecIT/PSParseHTML","commit_stats":{"total_commits":180,"total_committers":3,"mean_commits":60.0,"dds":"0.033333333333333326","last_synced_commit":"8d509d6ac54119b3a8a9bd6cdac5e7a8ab244126"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvotecIT%2FPSParseHTML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvotecIT%2FPSParseHTML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvotecIT%2FPSParseHTML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvotecIT%2FPSParseHTML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EvotecIT","download_url":"https://codeload.github.com/EvotecIT/PSParseHTML/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250561204,"owners_count":21450365,"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":["css","hacktoberfest","html","javascript","powershell","pswritehtml"],"created_at":"2024-11-08T23:44:55.343Z","updated_at":"2025-04-24T04:20:50.888Z","avatar_url":"https://github.com/EvotecIT.png","language":"PowerShell","funding_links":["https://github.com/sponsors/PrzemyslawKlys","https://paypal.me/PrzemyslawKlys"],"categories":[],"sub_categories":[],"readme":"﻿\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://dev.azure.com/evotecpl/PSParseHTML/_build/latest?definitionId=3\"\u003e\u003cimg src=\"https://dev.azure.com/evotecpl/PSParseHTML/_apis/build/status/EvotecIT.PSParseHTML\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.powershellgallery.com/packages/PSParseHTML\"\u003e\u003cimg src=\"https://img.shields.io/powershellgallery/v/PSParseHTML.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.powershellgallery.com/packages/PSParseHTML\"\u003e\u003cimg src=\"https://img.shields.io/powershellgallery/vpre/PSParseHTML.svg?label=powershell%20gallery%20preview\u0026colorB=yellow\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/EvotecIT/PSParseHTML\"\u003e\u003cimg src=\"https://img.shields.io/github/license/EvotecIT/PSParseHTML.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.powershellgallery.com/packages/PSParseHTML\"\u003e\u003cimg src=\"https://img.shields.io/powershellgallery/p/PSParseHTML.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/EvotecIT/PSParseHTML\"\u003e\u003cimg src=\"https://img.shields.io/github/languages/top/evotecit/PSParseHTML.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/EvotecIT/PSParseHTML\"\u003e\u003cimg src=\"https://img.shields.io/github/languages/code-size/evotecit/PSParseHTML.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.powershellgallery.com/packages/PSParseHTML\"\u003e\u003cimg src=\"https://img.shields.io/powershellgallery/dt/PSParseHTML.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://twitter.com/PrzemyslawKlys\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/PrzemyslawKlys.svg?label=Twitter%20%40PrzemyslawKlys\u0026style=social\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://evotec.xyz/hub\"\u003e\u003cimg src=\"https://img.shields.io/badge/Blog-evotec.xyz-2A6496.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.linkedin.com/in/pklys\"\u003e\u003cimg src=\"https://img.shields.io/badge/LinkedIn-pklys-0077B5.svg?logo=LinkedIn\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# PSParseHTML\n\n**PSParseHTML** started as a suite of data processing Cmdlets to help [PSWriteHTML](https://github.com/EvotecIT/PSWriteHTML), but it has gained functionality enough to be its own module. Basic usage instructions are described [on this blog post](https://evotec.xyz/formatting-and-minifying-resources-html-css-javascript-with-powershell/).\n\n**PSParseHTML** provides the following ten (10) functions:\n\n- Convert-HTMLToText\n- ConvertFrom-HtmlTable\n- ConvertFrom-HTMLAttributes (aliases: `ConvertFrom-HTMLTag`, `ConvertFrom-HTMLClass`)\n- ConvertFrom-HTML\n- Format-CSS\n- Format-HTML\n- Format-JavaScript\n- Optimize-CSS\n- Optimize-HTML\n- Optimize-JavaScript\n\nThe expected input is a string literal or string data read from a file. The output can be PowerShell objects (classes are `HtmlNode` or `AngleSharp.Html.Dom.HtmlElement` depending on the chosen processing engine) or string literals written to `stdout`.\n\nIt may not seem like much, but those ten functions are powerful enough to realize robust HTML processing in shell.\n\n## Installation\n\n### Install from PSGallery\n\n```powershell\nInstall-Module -Name PSParseHTML -AllowClobber -Force\n```\n\nForce and AllowClobber aren't necessary but they do skip errors in case some appear.\n\n### Update from PSGallery\n\n```powershell\nUpdate-Module -Name PSParseHTML\n```\n\nThat's it. Whenever there's a new version you simply run the `Update-Module` command and enjoy. Remember that you may need to close, re-open your **PowerShell** session if you had used the module prior to updating it.\n\nAs usual, **remember module updates may break your scripts**: if your scripts work for you in production, retain those versions until you test new versions in a dev environment. I may make small changes which are big enough so that your automated updates will break your scripts. For example, I might make a small rename to a parameter \u0026mdash; boom, your code stops working! Be responsible!\n\n## 3rd party references\n\nThis module utilizes several external dependencies to do its work. The authors of those libraries have done fantastic work \u0026mdash; I've just added some PowerShell to the mix.\n\n- [AngleSharp](https://github.com/AngleSharp/AngleSharp) - MIT License\n- [AngleSharp CSS](https://github.com/AngleSharp/AngleSharp.Css) - MIT License\n- [Jsbeautifier](https://github.com/denis-ivanov/Jsbeautifier) - MIT License\n- [NUglify](https://github.com/trullock/NUglify) - BSD-Clause 2 license\n- [Html Agility Pack](https://github.com/zzzprojects/html-agility-pack) - MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevotecit%2Fpsparsehtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevotecit%2Fpsparsehtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevotecit%2Fpsparsehtml/lists"}