disposable-directory
Asynchronously creates a disposable directory in the OS temporary directory that gets deleted after the callback is done or errors.
Last updated 4 years ago by jaydenseric .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install disposable-directory 
SYNC missed versions from official npm registry.

disposable-directory

Asynchronously creates a disposable directory in the OS temporary directory that gets deleted after the callback is done or errors.

Installation

To install disposable-directory with npm, run:

npm install disposable-directory

Then, import and use the function disposableDirectory.

Examples

How to use a disposable directory:

import disposableDirectory from "disposable-directory";

disposableDirectory(async (directoryPath) => {
  // Use the directory here.
})
  .then(() => {
    // The directory is gone.
  })
  .catch(() => {
    // The directory is gone.
  });

Requirements

Supported operating systems:

  • Linux
  • macOS

Supported runtime environments:

  • Node.js versions ^14.17.0 || ^16.0.0 || >= 18.0.0.

Projects must configure TypeScript to use types from the ECMAScript modules that have a // @ts-check comment:

Exports

The npm package disposable-directory features optimal JavaScript module design. These ECMAScript modules are exported via the package.json field exports:

Current Tags

  • 6.0.0                                ...           latest (4 years ago)

8 Versions

  • 6.0.0                                ...           4 years ago
  • 5.0.2                                ...           5 years ago
  • 5.0.1                                ...           5 years ago
  • 5.0.0                                ...           5 years ago
  • 4.0.0                                ...           6 years ago
  • 3.0.0                                ...           6 years ago
  • 2.0.0                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Total 24
Today 0
This Week 0
This Month 18
Last Day 0
Last Week 1
Last Month 6
Dependencies (1)
Dev Dependencies (6)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE