Skip to content

Get current working directory with TypeScript


import * as process from "process"

function getCurrentWorkingDirectory(): string {
    return process.cwd()
See also  TypeScript code snippet - How do you move data between the request?

Leave a Reply

Your email address will not be published.

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