Sha256: 5d4d74edf8eeb719bf2e40ddde566ac581cea8807b1d4c15b18c75cf1ae7d9ac
Contents?: true
Size: 606 Bytes
Versions: 168
Compression:
Stored size: 606 Bytes
Contents
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');
Version data entries
168 entries across 145 versions & 18 rubygems