# tempdir

> Create a temporary directory

Latest version **2.0.0** (published 2017-02-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install tempdir
pnpm add tempdir
yarn add tempdir
bun add tempdir
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2017-02-23 |
| First published | 2015-07-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Vadim Demedes |
| Maintainers | vdemedes |
| Keywords | tmp, tmpdir, mktemp |

## Links

- npm: https://www.npmjs.com/package/tempdir
- Repository: https://github.com/vadimdemedes/tempdir
- Homepage: https://github.com/vadimdemedes/tempdir#readme
- Issues: https://github.com/vadimdemedes/tempdir/issues
- npm.io page: https://npm.io/package/tempdir

## Dependencies (2)

- [pify](https://npm.io/package/pify.md) ^2.3.0
- [tempfile](https://npm.io/package/tempfile.md) ^1.1.1

## Recent versions

- 2.0.0 (latest) — 2017-02-23
- 1.0.0 — 2015-07-31

## README

# tempdir [![Build Status](https://travis-ci.org/vadimdemedes/tempdir.svg?branch=master)](https://travis-ci.org/vadimdemedes/tempdir)

> Create a temporary directory.


## Installation

```
$ npm install --save tempdir
```


## Usage

```js
const tempdir = require('tempdir');

await tempdir();
//=> /tmp/x/y/z

tempdir.sync();
//=> /tmp/x/y/w
```


## API

### tempdir()

Returns a `Promise`, which resolves to a directory path.

### tempdir.sync()

Synchronous version of `tempdir()`.


## License

MIT © [Vadim Demedes](https://vadimdemedes.com)

---
_Source: https://npm.io/package/tempdir · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
