Skip to content

Get current working directory with TypeScript


import * as process from "process"

function getCurrentWorkingDirectory(): string {
    return process.cwd()
See also  How to check string array is sorted or not in TypeScript?

Leave a Reply

Your email address will not be published.

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