Health Icons
Meta Data
Column Name |
Data |
Description |
Name |
Health Icons |
Name of the Pack |
Shortcode |
health |
Shortcode of the pack used for filtering |
Github Link |
|
Github Repository Link |
Total |
|
Total Number of Icons |
Author |
Resolve to Save Lives |
Author of the Icon Pack |
Author Link |
Resolve to Save Lives |
Link to the Author |
Icon SVG |
|
SVG for the Pack Logo, or |
Logo |
|
PNG or JPG for the Pack Logo |
Icons CSV |
|
CSV FIle of the Icons |
Has Categories |
Yes |
Are categories used to group icons within a pack. |
Transformations
Name |
Transform From |
Transform To |
1 |
currentColor |
{{IconColor}} |
PowerShell script to create csv from repository.
$counter = 1
$file = "D:CSVpayment-20250428.csv"
write-host "Health Icons"
$setName = "health"
$path = "D:health-icons*.svg"
$icons = get-childitem -File $path -recurse
ForEach($icon in $icons){
[string]$string = Get-Content $icon.FullName;
[string]$path = $icon.DirectoryName.Split('')[-1]
$objResults = New-Object PSObject -Property @{
pp_id = $counter;
pp_name = $icon.Name.Replace(".svg","").Replace("-"," ")
pp_svg = $string.Replace("""","'");
pp_pack = $setName
pp_size = ""
pp_category = $path
}
$counter++
$objResults | Export-CSV $file -Append -NoTypeInformation -force
}
write-host "Finished"