# test-tmp

> Get a fresh tmpdir for tests

Latest version **1.4.0** (published 2025-01-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install test-tmp
pnpm add test-tmp
yarn add test-tmp
bun add test-tmp
```

## Health

**Score 35/100 (D)** — status: stable.

Positive: no vulnerabilities.

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

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2025-01-22 |
| First published | 2023-06-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Mathias Buus |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/test-tmp
- Repository: https://github.com/mafintosh/test-tmp
- Issues: https://github.com/mafintosh/test-tmp/issues
- npm.io page: https://npm.io/package/test-tmp

## Dependencies (3)

- [bare-fs](https://npm.io/package/bare-fs.md) ^4.0.1
- [bare-os](https://npm.io/package/bare-os.md) ^3.3.0
- [bare-path](https://npm.io/package/bare-path.md) ^3.0.0

## Recent versions

- 1.4.0 (latest) — 2025-01-22
- 1.3.1 — 2024-12-20
- 1.3.0 — 2024-09-06
- 1.2.1 — 2024-04-09
- 1.2.0 — 2024-02-14
- 1.1.1 — 2024-02-02
- 1.1.0 — 2024-01-16
- 1.0.2 — 2023-07-25
- 1.0.0 — 2023-06-27
- 0.0.0 — 2023-06-27

## README

# test-tmp

Get a fresh tmpdir for tests

```
npm install test-tmp
```

## Usage

``` js
const test = require('brittle')
const tmp = require('test-tmp')

test('my test', async function (t) {
  const dir = await tmp(t)
  console.log('fresh dir for this test', dir)
})
```

## License

MIT

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