Files
2021-11-23 17:56:26 +01:00
..
2021-11-23 17:56:26 +01:00
2021-11-21 11:18:28 +01:00
2021-11-23 17:56:26 +01:00
2021-11-23 17:56:26 +01:00

tempfile Build Status

Get a random temp file path

Install

$ npm install --save tempfile

Usage

var tempfile = require('tempfile');

tempfile('.png');
//=> /var/folders/_1/tk89k8215ts0rg0kmb096nj80000gn/T/4049f192-43e7-43b2-98d9-094e6760861b.png

API

tempfile(extension)

extension

Type: string

Optionally supply an extension to append to the path.

License

MIT © Sindre Sorhus