1.0.3 • Published 9 years ago

tmpr v1.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
9 years ago

tmpr

release npm travis coverage david stability

Creates a temorary directory and then gives you the path to it. mkdirp(os.tmpdir + crypto.randomBytes), tests, and possibly a few other conerns.

demo

Install

$ npm i tmpr -g

API

var tmpr = require('tmpr')

tmpr(function(err, path) {
  console.log('Temp dir created at ' + path)
})

References

ogd bret: require('os').tmpdir

ogd i use that with require('mkdirp') and require('rimraf') a lot

ogd bret: usually like ~~(Math.random() * 1000000) + Date.now()

ogd could also do require('crypto').randomBytes(16).toString('hex')

-- #pdxnode 2015-03-02 09:51:02

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago