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

Version Path
immosquare-cleaner-0.1.32 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.31 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.30 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.29 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.28 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.27 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.26 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.25 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.24 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.23 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.22 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.21 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.20 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.19 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.18 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.17 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.16 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.14 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.13 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.12 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js