Sha256: c839152bdf9c24c6f521c7c89acfa8fe800340d4c8e9ab09adcd870320d1f106

Contents?: true

Size: 573 Bytes

Versions: 218

Compression:

Stored size: 573 Bytes

Contents

'use strict';
var isWindows = process.platform === 'win32';
var trailingSlashRe = isWindows ? /[^:]\\$/ : /.\/$/;

// https://github.com/nodejs/io.js/blob/3e7a14381497a3b73dda68d05b5130563cdab420/lib/os.js#L25-L43
module.exports = function () {
	var path;

	if (isWindows) {
		path = process.env.TEMP ||
			process.env.TMP ||
			(process.env.SystemRoot || process.env.windir) + '\\temp';
	} else {
		path = process.env.TMPDIR ||
			process.env.TMP ||
			process.env.TEMP ||
			'/tmp';
	}

	if (trailingSlashRe.test(path)) {
		path = path.slice(0, -1);
	}

	return path;
};

Version data entries

218 entries across 85 versions & 8 rubygems

Version Path
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/insight/node_modules/configstore/node_modules/os-tmpdir/index.js
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/configstore/node_modules/osenv/node_modules/os-tmpdir/index.js
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/bower-config/node_modules/osenv/node_modules/os-tmpdir/index.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/bower-config/node_modules/osenv/node_modules/os-tmpdir/index.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/configstore/node_modules/osenv/node_modules/os-tmpdir/index.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/insight/node_modules/configstore/node_modules/os-tmpdir/index.js
node-compiler-0.9.1 vendor/node/deps/npm/node_modules/osenv/node_modules/os-tmpdir/index.js
node-compiler-0.9.0 vendor/node-v7.2.1/deps/npm/node_modules/osenv/node_modules/os-tmpdir/index.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/bower-config/node_modules/osenv/node_modules/os-tmpdir/index.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/configstore/node_modules/osenv/node_modules/os-tmpdir/index.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/insight/node_modules/configstore/node_modules/os-tmpdir/index.js
node-compiler-0.8.0 vendor/node-v7.2.0/deps/npm/node_modules/osenv/node_modules/os-tmpdir/index.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/os-tmpdir/index.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/insight/node_modules/configstore/node_modules/os-tmpdir/index.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/configstore/node_modules/osenv/node_modules/os-tmpdir/index.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/bower-config/node_modules/osenv/node_modules/os-tmpdir/index.js
node-compiler-0.7.0 vendor/node-v6.9.1/deps/npm/node_modules/osenv/node_modules/os-tmpdir/index.js
node-compiler-0.7.0 vendor/node-v7.1.0/deps/npm/node_modules/osenv/node_modules/os-tmpdir/index.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/bower-config/node_modules/osenv/node_modules/os-tmpdir/index.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/insight/node_modules/configstore/node_modules/os-tmpdir/index.js