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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1

Package Sidebar

Install

npm i tmp-stats

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • coleww