import { type XDG } from "https://deno.land/x/xdg@v10.3.0/dist/types/mod.d.ts";
XDG
(API) Determine XDG Base Directory paths (OS/platform portable).
Call Signatures
(): XDG
Create an XDG
object (a preceding new
is optional).
Methods
new(): XDG
Create an XDG
object (new
is optional).
Returns the directory path for user-specific non-essential runtime files (such as sockets, named pipes, etc); may be undefined
.
Returns the directory path for user-specific state files (non-essential and more volatile than configuration files).
Returns a preference-ordered array of base directory paths to search for configuration files (includes .config()
directory as first entry).