Skip to main content
The Deno 2 Release Candidate is here
Learn more

temp_dir

Get the path of the system temp directory.

Usage

import tempDirectory from "https://deno.land/x/temp_dir@v1.0.0/mod.ts"

console.log(tempDirectory)
//=> "C:/Users/richi/AppData/Local/Temp"

Permissions required

  • Environment variables (--allow-env)
  • Reading (--allow-read)