You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation generated by <ahref="https://github.com/jsdoc/jsdoc">JSDoc 3.6.3</a> on Tue Apr 28 2020 21:12:13 GMT+0200 (GMT+02:00)
3513
+
Documentation generated by <ahref="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Fri Aug 26 2022 21:08:17 GMT+0200 (Mitteleuropäische Sommerzeit)
Copy file name to clipboardExpand all lines: docs/index.html
+23-15Lines changed: 23 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -63,8 +63,21 @@ <h2>About</h2>
63
63
not.</p>
64
64
<p>If you do not want to store your temporary directories and files in the
65
65
standard OS temporary directory, then you are free to override that as well.</p>
66
+
<h2>An Important Note on Previously Undocumented Breaking Changes</h2>
67
+
<p>All breaking changes that had been introduced, i.e.</p>
68
+
<ul>
69
+
<li>tmpdir must be located under the system defined tmpdir root.</li>
70
+
<li>Spaces being collapsed into single spaces</li>
71
+
<li>Removal of all single and double quote characters</li>
72
+
</ul>
73
+
<p>have been reverted in v0.2.2 and tmp should now behave as it did before the
74
+
introduction of these breaking changes.</p>
75
+
<p>In order to override the system's tmpdir, you will have to use the newly
76
+
introduced tmpdir option.</p>
66
77
<h2>An Important Note on Compatibility</h2>
67
78
<p>See the <ahref="./CHANGELOG.md">CHANGELOG</a> for more information.</p>
79
+
<h3>Version 0.2.2</h3>
80
+
<p>Since version 0.2.2, all support for node version < 12 has been dropped.</p>
68
81
<h3>Version 0.1.0</h3>
69
82
<p>Since version 0.1.0, all support for node versions < 0.10.0 has been dropped.</p>
70
83
<p>Most importantly, any support for earlier versions of node-tmp was also dropped.</p>
@@ -81,6 +94,13 @@ <h2>How to install</h2>
81
94
</code></pre>
82
95
<h2>Usage</h2>
83
96
<p>Please also check <ahref="https://raszi.github.io/node-tmp/">API docs</a>.</p>
97
+
<h2>Graceful cleanup</h2>
98
+
<p>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.</p>
99
+
<p>To enforce this, you can call the <code>setGracefulCleanup()</code> method:</p>
<li><code>name</code>: a fixed name that overrides random name generation, the name must be relative and must not contain path segments</li>
287
298
<li><code>mode</code>: the file mode to create with, falls back to <code>0o600</code> on file creation and <code>0o700</code> on directory creation</li>
288
299
<li><code>prefix</code>: the optional prefix, defaults to <code>tmp</code></li>
289
300
<li><code>postfix</code>: the optional postfix</li>
290
-
<li><code>template</code>: <ahref="http://www.kernel.org/doc/man-pages/online/pages/man3/mkstemp.3.html"><code>mkstemp</code></a> like filename template, no default, can be either an absolute or a relative path that resolves
291
-
to a relative path of the system's default temporary directory, must include <code>XXXXXX</code> once for random name generation, e.g.
292
-
'foo/bar/XXXXXX'. Absolute paths are also fine as long as they are relative to os.tmpdir().
293
-
Any directories along the so specified path must exist, otherwise a ENOENT error will be thrown upon access,
294
-
as tmp will not check the availability of the path, nor will it establish the requested path for you.</li>
301
+
<li><code>template</code>: <ahref="http://www.kernel.org/doc/man-pages/online/pages/man3/mkstemp.3.html"><code>mkstemp</code></a> like filename template, no default, must include <code>XXXXXX</code> once for random name generation, e.g.
302
+
'foo-bar-XXXXXX'.</li>
295
303
<li><code>dir</code>: the optional temporary directory that must be relative to the system's default temporary directory.
296
304
absolute paths are fine as long as they point to a location under the system's default temporary directory.
297
305
Any directories along the so specified path must exist, otherwise a ENOENT error will be thrown upon access,
Documentation generated by <ahref="https://github.com/jsdoc/jsdoc">JSDoc 3.6.3</a> on Tue Apr 28 2020 21:12:13 GMT+0200 (GMT+02:00)
334
+
Documentation generated by <ahref="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Fri Aug 26 2022 21:08:17 GMT+0200 (Mitteleuropäische Sommerzeit)
Documentation generated by <ahref="https://github.com/jsdoc/jsdoc">JSDoc 3.6.3</a> on Tue Apr 28 2020 21:12:13 GMT+0200 (GMT+02:00)
810
+
Documentation generated by <ahref="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Fri Aug 26 2022 21:08:17 GMT+0200 (Mitteleuropäische Sommerzeit)
0 commit comments