Format PowerShell object to Markdown table
Перейти к файлу
Ryutaro Koma 0d48f30a14 v1.0.4
fixed the following bugs.

- System.Collections.Generic.List<T> type objects are not expanded.
- '<' and '>' are not escaped.
2020-12-16 23:48:59 +09:00
.vscode v1.0.0 2020-08-08 02:46:48 +09:00
src/FormatMarkdownTable v1.0.4 2020-12-16 23:48:59 +09:00
.gitignore v1.0.1 2020-08-13 16:25:37 +09:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2020-01-31 22:50:56 -08:00
LICENSE Initial LICENSE commit 2020-01-31 22:50:55 -08:00
README.md Update README.md 2020-02-03 19:25:05 +09:00
SECURITY.md Initial SECURITY.md commit 2020-01-31 22:50:57 -08:00
azure-pipelines.yml Update azure-pipelines.yml for Azure Pipelines 2020-02-02 01:24:02 +09:00

README.md

FormatMarkdownTable PowerShell Module

FormatMarkdownTable is a PowerShell module which contains Format-MarkdownTableListStyle cmdlet and Format-MarkdownTableTableStyle cmdlet.

Installing the FormatMarkdownTable PowerShell Module

The module is published on the PowerShell Gallery.

Install-Module FormatMarkdownTable

Example

Get-ChildItem c:\ | Format-MarkdownTableListStyle Name, LastWriteTime, Mode

This example returns a summary of the child items in C drive, and markdown text will be copied to the clipboard. Each property is displayed on a separate row.

Get-ChildItem c:\ | Format-MarkdownTableTableStyle Name, LastWriteTime, Mode

This example returns a summary of the child items in C drive, and markdown text will be copied to the clipboard. Each property is displayed on a separate col.

Alias

You can also refer to Format-MarkdownTableListStyle by its built-in alias, FML.

You can also refer to Format-MarkdownTableTableStyle by its built-in alias, FMT.

If FML and FMT are not recognized, try Import-Module FormatMarkdownTable once to load the module explicitly.

Switch

Get-ChildItem c:\ | fml Name, LastWriteTime, Mode -HideStandardOutput

HideStandardOutput indicates that the cmdlet hides the standard output.

Get-ChildItem c:\ | fml Name, LastWriteTime, Mode -HideStandardOutput -ShowMarkdown

ShowMarkdown indicates that the cmdlet outputs the markdown text to the console.

Get-ChildItem c:\ | fml Name, LastWriteTime, Mode -HideStandardOutput -ShowMarkdown -DoNotCopyToClipboard

DoNotCopyToClipboard indicates the the cmdlet does not copy the markdown text to the clipboard.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.