Functions/FileSystem/Import-FileExtensions.ps1
Function Import-FileExtensions { [cmdletbinding()] Param() Process { $Global:PS_TextExtensions = @( ".1st" ".alx" ".application" ".asp" ".asc" ".bat" ".cmd" ".csv" ".css" ".htm" ".html" ".js" ".json" ".log" ".lrc" ".lst" ".md" ".me" ".nfo" ".opml" ".php" ".phtml" ".php?" ".plist" ".ps" ".ps1" ".psm1" ".psd1" ".ps1xml" ".reg" ".rss" ".srt" ".sub" ".tbl" ".text" ".txt" ".xhtml" ".xml" ".xmp" ".xsd" ".xsl" ".xslt" ".yml" ) $Global:PS_BinaryExtensions = @( ".bin" ".com" ".exe" ".deb" ".dll" ".dmg" ".exec" ".fmx" ".jar" ".msi" ) $Global:PS_ImageExtensions = @( ".png" ".img" ".gif" ".jpeg" ".jpg" ".bmp" ".heic" ".psd" ".webp" ".raw" ".tiff" ".tif" ".thumb" ".ico" ) $Global:PS_FileEncodings = @( [pscustomobject]([ordered]@{PSName="string";BodyName="utf-16";EncodingName="Unicode";Codepage=1200}) [pscustomobject]([ordered]@{PSName="unicode";BodyName="utf-16";EncodingName="Unicode";Codepage=1200}) [pscustomobject]([ordered]@{PSName="bigendianunicode";BodyName="utf-16BE";EncodingName="Unicode (Big-Endian)";Codepage=1201}) [pscustomobject]([ordered]@{PSName="bigendianUTF32";BodyName="utf-32BE";EncodingName="Unicode (UTF-32 Big-Endian)";Codepage=12001}) [pscustomobject]([ordered]@{PSName="utf8";BodyName="utf-8";EncodingName="Unicode (UTF-8)";Codepage=65001}) [pscustomobject]([ordered]@{PSName="utf7";BodyName="utf-7";EncodingName="Unicode (UTF-7)";Codepage=65000}) [pscustomobject]([ordered]@{PSName="utf32";BodyName="utf-32";EncodingName="Unicode (UTF-32)";Codepage=12000}) [pscustomobject]([ordered]@{PSName="ascii";BodyName="us-ascii";EncodingName="US-ASCII";Codepage=20127}) ) } } |