Skip to content

Get user home directory with TypeScript

import * as os from "os"

function getCurrentUserHomeDir(): string {
    return os.homedir()
See also  TypeScript code snippet - How to replace all elements in a column pands?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.