How to use 'dotenv config path' in JavaScript

Every line of 'dotenv config path' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
251function getArgvConfigPath() {
252 const vscodePortable = process.env['VSCODE_PORTABLE'];
253 if (vscodePortable) {
254 return path.join(vscodePortable, 'argv.json');
255 }
256
257 let dataFolderName = product.dataFolderName;
258 if (process.env['VSCODE_DEV']) {
259 dataFolderName = `${dataFolderName}-dev`;
260 }
261
262 return path.join(os.homedir(), dataFolderName, 'argv.json');
263}

Related snippets