Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/simple_utility/src/deno/path.ts

Simplify processing for Deno.
Go to Latest
import * as simpleUtility from "https://deno.land/x/simple_utility@v2.0.9/src/deno/path.ts";

Functions

System-wide user config directory path for each OS. ~/.config for UNIX and ~/AppData/Roaming for Windows.

System-wide application data directory path for each OS. /var for UNIX and C:/ProgramData for Windows.

System-wide home directory path for each OS. ${HOME} for UNIX and %USERPROFILE% for Windows.

Directory of Deno.mainModule.

Convert from backslash to slash. Useful for converting from Windows path to UNIX path.

Convert from slash to backslash. Useful for converting from UNIX path to Windows path.

System-wide temporary directory path for each OS. /tmp for UNIX and C:/Windows/Temp for Windows.