Searches through the filesystem from a given file and returns information based on input query.
In your command Line enter
npm install --save fs-digger
Require the package in your project
const digger = require('fs-digger');
To return an object listing the file system and its contents
let startPath = './your_starting_folder';
let result = digger.dig(startPath);
console.log(result)
To return information about all files matching an extension:
let startPath = './your_starting_folder';
let ext = 'mp4';
let result = digger.mineFileExt(startPath, ext);
To return all files matching a query by name (note, do not add extension)
let startPath = './your_starting_folder';
let query = 'hello-world';
let result = digger.mineFileExt(startPath, query);