This package has been deprecated

Author message:

use temporary-directory instead

tmpr

1.0.3 • Public • Published

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]

Readme

Keywords

Package Sidebar

Install

npm i tmpr

Weekly Downloads

1

Version

1.0.3

License

ISC

Last publish

Collaborators

  • bret