UNPKG

create-mobile-assets

Version:

Automates the generation of mobile assets. Automatically generates screen images for send to stores

10 lines (7 loc) 280 B
const fs = require("fs/promises"); async function getFilesPath(path){ const filesInDir = await fs.readdir(path); const filterFiles = filesInDir.filter((fileName)=>fileName.match(/(\.jpg|\.png|\.jpeg)$/i)) return filterFiles; } module.exports.getFilesPath = getFilesPath;