0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-30 09:08:00 -04:00
denoland-deno/os
2019-06-24 08:08:06 -07:00
..
mod.ts Add userHomeDir (denoland/deno_std#521) 2019-06-24 08:08:06 -07:00
README.md Add userHomeDir (denoland/deno_std#521) 2019-06-24 08:08:06 -07:00
test.ts Add userHomeDir (denoland/deno_std#521) 2019-06-24 08:08:06 -07:00

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();