Any thoughts on how I could get an array of file paths required (recursively) by a Node script? For example, given:
a.js
module.exports = {};
b.js
module.exports = {
a : require('./a.js');
};
c.js
const b = require('./b.js');
//etc. etc.
I'd like to run something like:
someAwesomeFunctionOrLibrary(require('./c.js')); // ["./b.js","./a.js"]