Skip to content

chreestopher/ConvertTo-MarkDownTable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

$proc = get-process 

$proc | select Name, Handles, Npm -First 3| convertto-markdownTable -includeOpen -allColumnsAllignment Left

$proc | select Name, Handles, Npm -First 3| convertto-markdownTable -allColumnsAllignment Center

$proc | select Name, Handles, Npm -First 3 | convertto-markdownTable -includeOpen -columnAlignment @{Handles="Right"} 

$proc | select Name, Handles, Npm -First 3 | convertto-markdownTable -columnAlignment @{NPM="Center"}   

Generates:

|Name                |Handles             |NPM                 |
|:------------------ |:------------------ |:------------------ |
|aaHMSvc             |147                 |13576               |
|AdaptiveSleepService|118                 |7824                |
|AiChargerPlus       |143                 |10112               |

Name                |Handles             |NPM                 |
:------------------:|:------------------:|:------------------:|
aaHMSvc             |147                 |13576               |
AdaptiveSleepService|118                 |7824                |
AiChargerPlus       |143                 |10112               |

|Name                |Handles             |NPM                 |
| ------------------ | ------------------:| ------------------ |
|aaHMSvc             |147                 |13576               |
|AdaptiveSleepService|118                 |7824                |
|AiChargerPlus       |143                 |10112               |

Name                |Handles             |NPM                 |
 ------------------ | ------------------ |:------------------:|
aaHMSvc             |147                 |13576               |
AdaptiveSleepService|118                 |7824                |
AiChargerPlus       |143                 |10112               |    

Which Parses into:

Name Handles NPM
aaHMSvc 147 13576
AdaptiveSleepService 118 7824
AiChargerPlus 143 10112
Name Handles NPM
aaHMSvc 147 13576
AdaptiveSleepService 118 7824
AiChargerPlus 143 10112
Name Handles NPM
aaHMSvc 147 13576
AdaptiveSleepService 118 7824
AiChargerPlus 143 10112
Name Handles NPM
aaHMSvc 147 13576
AdaptiveSleepService 118 7824
AiChargerPlus 143 10112

About

Convert a collection of PSObjects into Markdown

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published