mirror of
https://github.com/denoland/deno.git
synced 2024-11-27 16:10:57 -05:00
58bac5dc29
Original: ff7fb5a5d6
16 lines
403 B
Markdown
16 lines
403 B
Markdown
# 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).
|
|
|
|
```ts
|
|
import { userHomeDir } from "https://deno.land/std/os/mod.ts";
|
|
|
|
userHomeDir();
|
|
```
|