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 to add alias to my hosts in ansible hosts?

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.