Nefariously Programmed Mecha
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

tmp-stats

0.1.0 • Public • Published

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.

Keywords

install

npm i tmp-stats

Downloadsweekly downloads

2

version

0.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability