Skip to content

Get current working directory with TypeScript

Advertisements
  

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.