Guest User

Untitled

a guest
Jul 16th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. fs = require 'fs'
  2. hash = require 'traverse/hash'
  3. seq = require 'seq'
  4.  
  5. seq().seq ->
  6. fs.readdir __dirname, this
  7. .flatten()
  8. .parEach (file) ->
  9. fs.stat __dirname + '/' + file, this.into file
  10. .seq ->
  11. sizes = hash.map @vars, (s) -> s.size
  12. console.dir sizes
Add Comment
Please, Sign In to add comment