PHP 8.2.30
Preview: index.js Size: 244 B
//opt/alt/alt-nodejs11/root/usr/lib/node_modules/npm/node_modules/slash/index.js

'use strict';
module.exports = function (str) {
	var isExtendedLengthPath = /^\\\\\?\\/.test(str);
	var hasNonAscii = /[^\x00-\x80]+/.test(str);

	if (isExtendedLengthPath || hasNonAscii) {
		return str;
	}

	return str.replace(/\\/g, '/');
};

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
244 B lrw-r--r-- 2021-10-19 09:47:57
Edit Download
1.45 KB lrw-r--r-- 2021-10-19 09:47:57
Edit Download
890 B lrw-r--r-- 2021-10-19 09:47:57
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).