# temp-suffix

> Adds a unique suffix to a string with process and thread uniqueness guarantees. Adapted from https://github.com/npm/write-file-atomic

Latest version **1.0.10** (published 2025-12-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install temp-suffix
pnpm add temp-suffix
yarn add temp-suffix
bun add temp-suffix
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: no vulnerabilities; high maintenance score.

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

## Facts

| | |
|---|---|
| Version | 1.0.10 |
| Published | 2025-12-12 |
| First published | 2020-06-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kevin Malakoff |
| Maintainers | kmalakoff |
| Keywords | temp, temporary, filename, suffix |

## Links

- npm: https://www.npmjs.com/package/temp-suffix
- Repository: https://github.com/kmalakoff/temp-suffix
- Issues: https://github.com/kmalakoff/temp-suffix/issues
- npm.io page: https://npm.io/package/temp-suffix

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 1.0.10 (latest) — 2025-12-12
- 1.0.9 — 2025-12-12
- 1.0.8 — 2025-12-04
- 1.0.7 — 2025-12-04
- 1.0.6 — 2025-12-02
- 1.0.5 — 2025-11-06
- 1.0.4 — 2025-10-21
- 1.0.3 — 2025-10-21
- 1.0.2 — 2025-07-08
- 1.0.1 — 2025-06-29
- 0.1.20 — 2025-06-20
- 0.1.19 — 2025-06-18
- 0.1.18 — 2025-05-20
- 0.1.17 — 2025-05-19
- 0.1.16 — 2025-05-19
- … 14 more at https://npm.io/package/temp-suffix/versions

## README

## temp-suffix

Adds a unique suffix to a string with process and thread uniqueness guarantees. Adapted from https://github.com/npm/write-file-atomic

```
var tempSuffix = require(temp-suffix');
var assert = require(assert');

var tempFilename = tempSuffix(__filename);
console.log(tempFilename); // __filename + '-' + [UNIQUE SUFFIX]

var suffix = tempSuffix();
console.log(suffix); // [UNIQUE SUFFIX]
```

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