# gettemporaryfilepath

> Generate temporary file names in your OS' temporary dir

Latest version **1.0.1** (published 2020-07-17) · BSD license · 0 weekly downloads

## Install

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

## 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 | 1.0.1 |
| Published | 2020-07-17 |
| First published | 2012-12-01 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Andreas Lind |
| Maintainers | papandreou |
| Keywords | temporary, tmp, temp, os, tempdir, windows, linux, osx |

## Links

- npm: https://www.npmjs.com/package/gettemporaryfilepath
- Repository: https://github.com/papandreou/node-gettemporaryfilepath
- Homepage: https://github.com/papandreou/node-gettemporaryfilepath#readme
- Issues: https://github.com/papandreou/node-gettemporaryfilepath/issues
- npm.io page: https://npm.io/package/gettemporaryfilepath

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-07-17
- 1.0.0 — 2017-03-30
- 0.0.1 — 2012-12-01

## README

node-gettemporaryfilepath
=========================

Generate file names for temporary files:

```javascript
var getTemporaryFilePath = require('gettemporaryfilepath');

getTemporaryFilePath(); // "/tmp/112116-2662-18u8bl8"
getTemporaryFilePath(); // "/tmp/112116-2662-1inp07r"
```

Creating and cleaning up the temporary files is your own
responsibility.

Custom suffixes and prefixes are supported using the same syntax as <a
href="https://github.com/bruce/node-temp#affixes">node-temp</a> (from
which most of the code was taken):

```javascript
getTemporaryFilePath({suffix: '.png'}); // "/tmp/112116-2662-125a83d.png"
getTemporaryFilePath({prefix: 'foo-'}); // "/tmp/foo-112116-2662-avhu28"
```

Installation
------------

Make sure you have node.js and npm installed, then run:

    npm install gettemporaryfilepath


License
-------

Based on <a href="https://github.com/bruce/node-temp#affixes">node-temp</a>
and licensed under the 3-clause BSD license -- see the `LICENSE` file for
details.

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