Wondering what’s next for npm?Check out our public roadmap! »

p-temporary-directory

1.1.1 • Public • Published

p-temporary-directory

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

Keywords

none

Install

npm i p-temporary-directory

DownloadsWeekly Downloads

7

Version

1.1.1

License

MIT

Unpacked Size

3.55 kB

Total Files

6

Last publish

Collaborators

  • avatar