UNPKG

electron-evil-feature-patcher

Version:

Patches Electron to remove certain features from it, such as debugging flags, that can be used for evil

16 lines (11 loc) 405 B
#!/usr/bin/env node const patch = require('./patch'); const { version } = require('./package.json'); console.log(`Electron feature patcher v${version}`); const [packagePath] = process.argv.slice(2); if (!packagePath) { console.log('Usage: node patch path-to-your-electron-package'); process.exit(1); } const verbose = process.argv.includes('--verbose'); patch({ path: packagePath, verbose });