p-temporary-directory

2.0.1 • Public • Published

p-temporary-directory

latest version Actions Status Coverage Status downloads

The same as temporary-directory but with promises.

npm install p-temporary-directory

Usage

const tmp = require('p-temporary-directory')
const tmpCb = require('p-temporary-directory/cb') // same as temporary-directory

async function usuallyATest() {
  const [dir, cleanup] = await tmp()
  // use dir
  //...

  await cleanup()
}

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i p-temporary-directory

Weekly Downloads

66

Version

2.0.1

License

MIT

Unpacked Size

8.36 kB

Total Files

10

Last publish

Collaborators

  • bret