memes/generate-max.ps1
2023-03-09 16:27:23 -04:00

5 lines
224 B
PowerShell

$count = Get-ChildItem -Path ./* -Include *.mp4 | Measure-Object | Select-Object -ExpandProperty Count
$declaration = "const MAX = "
$string = $declaration + $count
$string | Out-File -Encoding utf8 -FilePath ".\max.js"