# tmpa

> Get unique temp file or dir path

Latest version **0.1.0** (published 2020-09-15) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2020-09-15 |
| First published | 2020-09-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=12.13.0 |
| Dependencies | 2 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 81 |
| Maintainers | deepsweet |
| Keywords | tmp, temp |

## Links

- npm: https://www.npmjs.com/package/tmpa
- Repository: https://github.com/nextools/metarepo
- Homepage: https://github.com/nextools/metarepo#readme
- Issues: https://github.com/nextools/metarepo/issues
- npm.io page: https://npm.io/package/tmpa

## Dependencies (2)

- [pifs](https://npm.io/package/pifs.md) ^2.0.0
- [nanoid](https://npm.io/package/nanoid.md) ^3.1.12

## Recent versions

- 0.1.0 (latest) — 2020-09-15
- 0.0.0 — 2020-09-14

## README

# tmpa ![npm](https://flat.badgen.net/npm/v/tmpa)

Get unique temp file or dir path.

## Install

```sh
$ yarn add tmpa
```

## Usage

```ts
const getTempFilePath: (extension?: string) => Promise<string>

const getTempDirPath: (prefix?: string) => Promise<string>
```

```ts
import { getTempFilePath, getTempDirPath } from 'tmpa'

console.log(
  await getTempFilePath('png')
)
// /private/var/folders/…/….png

console.log(
  await getTempDirPath('prefix-')
)
// /private/var/folders/…/prefix-…
```

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