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

x/os_paths/dist/types/mod.d.ts>OSPaths

Determine common OS/platform paths (home, temp, ...)
Go to Latest
interface OSPaths
import { type OSPaths } from "https://deno.land/x/os_paths@v7.3.0/dist/types/mod.d.ts";

OSPaths (API) Determine common OS/platform paths (home, temp, ...)

Call Signatures

Create an OSPaths object (a preceding new is optional).

Methods

new(): OSPaths

Create an OSPaths object (new is optional).

home(): string | undefined

Returns the path string of the user's home directory (or undefined if the user's home directory is not resolvable).

temp(): string

Returns the path string of the system's default directory for temporary files.