Initial commit
[yaffs-website] / node_modules / tempfile / readme.md
1 # tempfile [![Build Status](https://travis-ci.org/sindresorhus/tempfile.svg?branch=master)](https://travis-ci.org/sindresorhus/tempfile)
2
3 > Get a random temp file path
4
5
6 ## Install
7
8 ```sh
9 $ npm install --save tempfile
10 ```
11
12
13 ## Usage
14
15 ```js
16 var tempfile = require('tempfile');
17
18 tempfile('.png');
19 //=> /var/folders/_1/tk89k8215ts0rg0kmb096nj80000gn/T/4049f192-43e7-43b2-98d9-094e6760861b.png
20 ```
21
22
23 ## API
24
25 ### tempfile(extension)
26
27 #### extension
28
29 Type: `string`
30
31 Optionally supply an extension to append to the path.
32
33
34 ## License
35
36 MIT © [Sindre Sorhus](http://sindresorhus.com)