@pixari/listfiles
v1.0.0
Published
A Node.js module for recursively listing all files in a directory and its subdirectories filtered by files extension.
Downloads
3
Readme
Description
A very basic Node.js module for recursively listing all files in a directory and its subdirectories filtered by files extension.
Installation
npm install listfiles
Usage
const listfiles = require('./listfiles');
const dir = '../'; // root path
const ext = 'js'; // file extension (without ".")
const files = listfiles(dir, ext);
console.log(files);