Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
files.some(file => path.basename(file.path) === 'package.json'); let curPath = path.dirname(filePath);
the path module from node core for browsers