/PSParseHTML

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.

Primary LanguagePowerShell

PSParseHTML

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. Basic how-to usage is described on this blog post.

PSParseHTML has 8 functions:

  • Optimize-CSS
  • Optimize-HTML
  • Optimize-JavaScript
  • Format-CSS
  • Format-HTML
  • Format-JavaScript
  • Convert-HTMLToText
  • ConvertFrom-HTMLTable

They expect input as string or from file. They output to string or to file.

ChangeLog

  • 0.0.8 - 8.10.2019
    • Updated ConvertFrom-HTMLTable to support more tables
    • Added ConvertFrom-HTMLTag
  • 0.0.6 - 6.10.2019
    • Added ConvertFrom-HTMLTable (Thank you - Anthony Howell!)
  • 0.0.5 - 11.08.2019 - Blog post for the release
    • First public release

To install

Install-Module -Name PSParseHTML -AllowClobber -Force

Force and AllowClobber aren't really nessecary but they do skip errors in case some appear.

And to update

Update-Module -Name PSParseHTML

That's it. Whenever there's new version you simply run the command and you can enjoy it. Remember, that you may need to close, reopen PowerShell session if you have already used module before updating it.

The important thing is if something works for you on production, keep using it till you test the new version on a test computer. I do changes that may not be big, but big enough that auto-update will break your code. For example, small rename to a parameter and your code stops working! Be responsible!

3rd party references

This module uses several external libraries to do it's work. Authors of those libraries made fantastic job. I've just added some PowerShell souce to the mix.