Skip to content

shadcn/tempfile

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tempfile Build Status

Get a random temp file path

Install

Install with npm

npm install --save tempfile

Example

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

About

Get a random temp file path

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%