arudradey's picture
download
raw
330 Bytes
'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);
};

Xet Storage Details

Size:
330 Bytes
·
Xet hash:
720284fa8829f45d741df3ba04fba1369decdd087b6ab922178fe3771f71bf75

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.