Skip to content

Instantly share code, notes, and snippets.

@pste
Last active April 13, 2018 12:50
Show Gist options
  • Save pste/5f92b09542f13f6d04298e0cc05910f2 to your computer and use it in GitHub Desktop.
Save pste/5f92b09542f13f6d04298e0cc05910f2 to your computer and use it in GitHub Desktop.
sniffing list-of-files info (node.js)
var allstats = filelist.map(filename => ({name: filename, path: path.parse(filename), stats: fs.statSync(filename) }));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment