Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
npm.load({loglevel: 'silent', lock: false}, (err, success) => {
if (err) {
console.error(err);
}
else {
npmInstall = promisify(npm.commands.install);
npmView = promisify(npm.commands.view);
// disable an attack vector
npm.config.set('ignore-scripts', true);
}
});