Skip to content

Get current working directory with TypeScript

Advertisements
  

import * as process from "process"

function getCurrentWorkingDirectory(): string {
    return process.cwd()
}
See also  How to generate uuid in TypeScript?

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.