Metzploreur/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js
clement callaert 244d45ceb8 Version 2
2023-11-01 17:33:25 +01:00

8 lines
449 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getConfigFilepath = exports.ENV_CONFIG_PATH = void 0;
const path_1 = require("path");
const getHomeDir_1 = require("./getHomeDir");
exports.ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
const getConfigFilepath = () => process.env[exports.ENV_CONFIG_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "config");
exports.getConfigFilepath = getConfigFilepath;