__dirname
__filename
require.main.path
require.main.filename
import * as path from "path"; path.resolve("current/path", "..");