// Menu: Slugify file name// Description: Slugify selected files// Author: Vojta Holik// Twitter: @vjthlklet slugify = await npm("slugify")let selectedFiles = await getSelectedFile()const filePaths = selectedFiles.split("\n")for (let filePath of filePaths) {let originalFileName = path.basename(filePath)let newFileName = slugify(originalFileName, {lower: true,})let newFilePath = path.join(path.dirname(filePath),newFileName)cp(filePath, newFilePath)}