Get current working directory with TypeScript
Advertisements
import * as process from "process" function getCurrentWorkingDirectory(): string { return process.cwd() }
import * as process from "process" function getCurrentWorkingDirectory(): string { return process.cwd() }