Skip to content

Latest commit

 

History

History
 
 

os

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

os

Module provide platform-independent interface to operating system functionality.

Usage

userHomeDir

Returns the current user's home directory. On Unix, including macOS, it returns the $HOME environment variable. On Windows, it returns %USERPROFILE%. Needs permissions to access env (--allow-env).

import { userHomeDir } from "https://deno.land/std/os/mod.ts";

userHomeDir();