@yoolabs/tmp
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

Tmp

A simple temporary file and directory creator for node.js.

Build Status Dependencies npm version API documented Known Vulnerabilities

About

This is a widely used library to create temporary files and directories in a node.js environment.

Tmp offers both an asynchronous and a synchronous API. For all API calls, all the parameters are optional. There also exists a promisified version of the API, see [tmp-promise][5].

Tmp uses crypto for determining random file names, or, when using templates, a six letter random identifier. And just in case that you do not have that much entropy left on your system, Tmp will fall back to pseudo random numbers.

You can set whether you want to remove the temporary file on process exit or not.

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.

An Important Note on Compatibility

See the CHANGELOG for more information.

Version 0.1.0

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.

If you still require node versions < 0.10.0, then you must limit your node-tmp dependency to versions below 0.1.0.

Version 0.0.33

Since version 0.0.33, all support for node versions < 0.8 has been dropped.

If you still require node version 0.8, then you must limit your node-tmp dependency to version 0.0.33.

For node versions < 0.8 you must limit your node-tmp dependency to versions < 0.0.33.

/@yoolabs/tmp/

    Package Sidebar

    Install

    npm i @yoolabs/tmp

    Weekly Downloads

    16

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    162 kB

    Total Files

    52

    Last publish

    Collaborators

    • yooser