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

x/simple_utility/src/path.deno.ts

Useful snippet collection.
Go to Latest
import * as simpleUtility from "https://deno.land/x/simple_utility@v1.4.4/src/path.deno.ts";

Functions

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

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

Return 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.

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