Quantumbraid's picture
download
raw
606 Bytes
var a = require.resolve('buffer/').replace(process.cwd(), '$CWD');
var b = require('resolve').sync('buffer/', { preserveSymlinks: true }).replace(process.cwd(), '$CWD');
var c = require('resolve').sync('buffer/', { preserveSymlinks: false }).replace(process.cwd(), '$CWD');
console.log(a, ': require.resolve, preserveSymlinks ' + (process.execArgv.indexOf('preserve-symlinks') > -1 ? 'true' : 'false'));
console.log(b, ': preserveSymlinks true');
console.log(c, ': preserveSymlinks false');
if (a !== b && a !== c) {
throw 'sync: no match';
}
console.log('sync: success! a matched either b or c\n');

Xet Storage Details

Size:
606 Bytes
·
Xet hash:
564d58ef3ecbaed44d2f39dac1dfd50fb5752b8f4db38ff98df8083e36e1c692

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