UNPKG

npm-analyze

Version:

CLI tool to analyze the dependencies of your project. Size, count, and overhead in modules

11 lines (8 loc) 242 B
const { promisify } = require('util') const fs = require('fs') const fsLStat = promisify(fs.lstat) module.exports = async (files) => { return Promise.all(files.map(file => { return fsLStat(file).then(stat => ({ file, stat })) })) }