mktmpdir
mktmpdir creates a temporary directory, ported from Ruby's Dir.mktmpdir.
var mktmpdir = ; ;
Installation
$ npm install mktmpdir
Usage
mktmpdir([prefixSuffix], [tmpdir], callback, [onend])
The prefix and suffix of the name of the directory is specified by prefixSuffix
.
The directory is created under tmpdir
or os.tmpdir()
with 0700 permission.
Examples
; ; ; ; // If a callback is invoked, the path of the directory and its contents are removed.; // If a callback is not invoked, `mktmpdir` doesn't remove the directory.;
License
MIT