PHP 7.4.33
Preview: index.js Size: 330 B
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/has-flag/index.js
'use strict';

module.exports = (flag, argv = process.argv) => {
	const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
	const position = argv.indexOf(prefix + flag);
	const terminatorPosition = argv.indexOf('--');
	return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
};

Directory Contents

Dirs: 0 × Files: 5
Name Size Perms Modified Actions
684 B lrw-r--r-- 2025-03-28 11:04:31
Edit Download
330 B lrw-r--r-- 2025-03-28 11:04:31
Edit Download
1.08 KB lrw-r--r-- 2025-03-28 11:04:31
Edit Download
696 B lrw-r--r-- 2025-03-28 11:04:31
Edit Download
1.56 KB lrw-r--r-- 2025-03-28 11:04:31
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).