Skip to content

Get user home directory with TypeScript

Advertisements
  
import * as os from "os"

function getCurrentUserHomeDir(): string {
    return os.homedir()
}
See also  TypeScript code snippet - Entity service async requests and How to make them synch?

Leave a Reply

Your email address will not be published. Required fields are marked *

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