Answers for "node find all files with extension"

11

node get all files in folder

fs.readdir('./', (err, files) => {
    files.forEach(file => {
    //   console.log(file);
})});
Posted by: Guest on March-15-2021
0

get file extension node

var path = require('path')

path.extname('index.html')
// returns
'.html'
Posted by: Guest on November-26-2021

Code answers related to "node find all files with extension"

Code answers related to "Javascript"

Browse Popular Code Answers by Language