Skip to main content
Module

x/enzastdlib/os/darwin.ts>getUserConfig

enzastdlib is a set of TypeScript modules that follow a common design API philosophy aiming at sane defaults and ease-of-use targeting the Deno TypeScript runtime.
Latest
variable getUserConfig
import { getUserConfig } from "https://deno.land/x/enzastdlib@v0.0.4/os/darwin.ts";

Returns the config directory of the current user.

NOTE: Returns the value of the environment variable $HOME joined with Library/Application Support.

Examples

Example 1

import { assertEquals } from 'https://deno.land/std/testing/asserts.ts';
import { getUserConfig } from 'https://deno.land/x/enzastdlib/os/darwin.ts';

assertEquals(
    getUserConfig(),
    '/Users/novacbn/Library/Application Support'
);

type

() => unknown