All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.path-key.index.js Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
'use strict';
module.exports = opts => {
	opts = opts || {};

	const env = opts.env || process.env;
	const platform = opts.platform || process.platform;

	if (platform !== 'win32') {
		return 'PATH';
	}

	return Object.keys(env).find(x => x.toUpperCase() === 'PATH') || 'Path';
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy