- Complete React app with 7 developer tools - JSON Tool with visual structured editor - Serialize Tool with visual structured editor - URL, Base64, CSV/JSON, Beautifier, Diff tools - Responsive navigation with dropdown menu - Dark/light mode toggle - Mobile-responsive design with sticky header - All tools working with copy/paste functionality
13 lines
606 B
JavaScript
13 lines
606 B
JavaScript
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');
|