Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fs = require 'fs'
- hash = require 'traverse/hash'
- seq = require 'seq'
- seq().seq ->
- fs.readdir __dirname, this
- .flatten()
- .parEach (file) ->
- fs.stat __dirname + '/' + file, this.into file
- .seq ->
- sizes = hash.map @vars, (s) -> s.size
- console.dir sizes
Add Comment
Please, Sign In to add comment