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
trusty-cms-6.3.1 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.51 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.51 node_modules/eslint-import-resolver-node/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.51 node_modules/@babel/helper-define-polyfill-provider/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
boring_generators-0.15.0 tmp/templates/app_template/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.26 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.50 node_modules/eslint-import-resolver-node/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.50 node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
immosquare-cleaner-0.1.50 node_modules/@babel/helper-define-polyfill-provider/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.22 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.21 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.20 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.19 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.18 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.17 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.16 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
clapton-0.0.15 lib/clapton/javascripts/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js