diff --git a/docs/global.html b/docs/global.html index 0c3dbfa..1705a4d 100644 --- a/docs/global.html +++ b/docs/global.html @@ -908,7 +908,7 @@
If you do not want to store your temporary directories and files in the standard OS temporary directory, then you are free to override that as well.
+All breaking changes that had been introduced, i.e.
+have been reverted in v0.2.2 and tmp should now behave as it did before the +introduction of these breaking changes.
+In order to override the system's tmpdir, you will have to use the newly +introduced tmpdir option.
See the CHANGELOG for more information.
+Since version 0.2.2, all support for node version < 12 has been dropped.
Since version 0.1.0, all support for node versions < 0.10.0 has been dropped.
Most importantly, any support for earlier versions of node-tmp was also dropped.
@@ -81,6 +94,13 @@Please also check API docs.
+If graceful cleanup is set, tmp will remove all controlled temporary objects on process exit, otherwise the temporary objects will remain in place, waiting to be cleaned up on system restart or otherwise scheduled temporary object removal.
+To enforce this, you can call the setGracefulCleanup()
method:
const tmp = require('tmp');
+
+tmp.setGracefulCleanup();
+
Simple temporary file creation, the file will be closed and unlinked on process exit.
const tmp = require('tmp');
@@ -271,15 +291,6 @@ Synchronous filename generation
const tmpname = tmp.tmpNameSync(options);
console.log('Created temporary filename: ', tmpname);
-If graceful cleanup is set, tmp will remove all controlled temporary objects on process exit, otherwise the -temporary objects will remain in place, waiting to be cleaned up on system restart or otherwise scheduled temporary -object removal.
-To enforce this, you can call the setGracefulCleanup()
method:
const tmp = require('tmp');
-
-tmp.setGracefulCleanup();
-
All options are optional :)
mode
: the file mode to create with, falls back to 0o600
on file creation and 0o700
on directory creationprefix
: the optional prefix, defaults to tmp
postfix
: the optional postfixtemplate
: mkstemp
like filename template, no default, can be either an absolute or a relative path that resolves
-to a relative path of the system's default temporary directory, must include XXXXXX
once for random name generation, e.g.
-'foo/bar/XXXXXX'. Absolute paths are also fine as long as they are relative to os.tmpdir().
-Any directories along the so specified path must exist, otherwise a ENOENT error will be thrown upon access,
-as tmp will not check the availability of the path, nor will it establish the requested path for you.template
: mkstemp
like filename template, no default, must include XXXXXX
once for random name generation, e.g.
+'foo-bar-XXXXXX'.dir
: the optional temporary directory that must be relative to the system's default temporary directory.
absolute paths are fine as long as they point to a location under the system's default temporary directory.
Any directories along the so specified path must exist, otherwise a ENOENT error will be thrown upon access,
@@ -323,7 +331,7 @@