management/front/dkha-web-sz-main/node_modules/tempfile/readme.md

37 lines
628 B
Markdown
Raw Normal View History

2023-12-18 13:12:25 +08:00
# tempfile [![Build Status](https://travis-ci.org/sindresorhus/tempfile.png?branch=master)](http://travis-ci.org/sindresorhus/tempfile)
> Get a random temp file path
## Install
Install with [npm](https://npmjs.org/package/tempfile)
```
npm install --save tempfile
```
## Example
```js
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](http://sindresorhus.com)