p-temporary-directory
Promise temporary directories
Last updated a year ago by bret .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install p-temporary-directory 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.1                                ...           latest (a year ago)

3 Versions

  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |