PSparklines

2.0.1

A very simple way to show text sparklines in the console

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PSparklines

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name PSparklines

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

2020

Package Details

Author(s)

  • endowdly

Tags

Console Sparklines

Functions

New-Emphasis Get-Sparkline Show-Sparkline Write-Sparkline

Dependencies

This module has no dependencies.

Release Notes

1.0.0 -- Initial Release -- 2020 Sep 6

1.0.1 -- Patch -- 2022 Feb 2
Change PSparklines.psm1:
- Add- and Set-Emphasis functions now take switched parameters for comparisons instead of a validated string.
 This feature is in-line with Foreach- and Where-Object.
 Behavior is unchanged.

1.0.2 -- Hotfix -- 2022 Jun 19
Change PSparklines.psm1:
- Move module variable definition to top
- Change resource variable binding to allow version side-loading

1.0.3 -- Hotfix -- 2022 Jun 23
Change PSparklines.psm1
- Fix empty negative number warning on non-pipelined input.
 This error was caused by a typo in magic method call.
 Merged PR#1.

2.0.0 -- Ansi Time -- 2022 Jul 14
Breaking change!
Adds ANSI color support through robust internal Color class.
Removes convoluted Emphasis logic through bad comparison tables and associated supporting functions.
Emphasis to use simple predicate functions that allows for more complex selection logic.

Change PSparklines.psm1
- Remove New-EmphasisTable
- Remove Add-Emphasis
- Remove Set-Emphasis
- Change Emphasis class
- Add Color class
- Change Get-Sparkline and Show-Sparkline functions to reflect new Emphasis changes
- Add New-Emphasis function

2.0.1 -- Hotfix -- 2022 Jul 17
Incoming fix from AjayKMehta

Change README.md
- Fix typos

Change PSparklines.psm1
- Fix whitespace
- Format
- Fix error that caused an 8bit ANSI -> ConsoleColor translation error on bright bit evaluation

Cleanup by endowdly

Remove PSparklines.todo
- Like a vestigial appendage we no longer need

FileList

Version History

Version Downloads Last updated
2.0.1 (current version) 754 10/12/2022
2.0.0 34 7/15/2022
1.0.3 21 6/23/2022
1.0.2 26 6/19/2022
1.0.1 14 6/19/2022