Skip to content

coleww/tmp-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tmp-stats

a lil helper to get the stats object on arbitrary streams/datas/blobs/pokemons.

getStat(data, enc, cb(err, stat, tmpFilePath))

writes to a tmp file, gets the stat object, and then wipes the file.

randomPath()

gives you a random file path in os.tmpdir to write to

TODO:

Add tests for error cases (wat are they even?)

Should randomPath prefix/"namespace" somehow?

Sort out the tmpDeleted business.

About

it helps you to get the stats on your data for you

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages