{"id":25197,"library":"electron-compiler","title":"electron-compiler","description":"Build tool that copies an Electron app repository, uglifies JavaScript and CSS, installs dependencies, and packages using electron-packager. Version 1.0.9 is the latest but appears unmaintained since 2016 (no recent updates). Differentiators: combines uglification, minification, and packaging in one CLI. Alternatives: electron-builder, electron-forge. Relies on outdated dependencies like babel 5.x and minifier; not recommended for new projects due to lack of updates and potential security issues with nested dependencies.","status":"abandoned","version":"1.0.9","language":"javascript","source_language":"en","source_url":"https://github.com/andrezammit/electron-compiler","tags":["javascript","electron","compiler","electron-compiler","compile","uglify","minify","packager","electron-packager"],"install":[{"cmd":"npm install electron-compiler","lang":"bash","label":"npm"},{"cmd":"yarn add electron-compiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add electron-compiler","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"used for packaging the final app","package":"electron-packager","optional":false},{"reason":"used for uglifying JavaScript, version 5.x","package":"babel","optional":false},{"reason":"used for log colors, known supply chain risk","package":"colors","optional":false}],"imports":[{"note":"This is a CLI tool, not a module. Install globally or use npx.","wrong":"Not a library - use as CLI command","symbol":"electron-compiler","correct":"CLI tool, no import"}],"quickstart":{"code":"# Install globally\nnpm install -g electron-compiler\n\n# Run on your app directory\nelectron-compiler /path/to/electron-app\n","lang":"javascript","description":"Demonstrates installing the CLI and running it on an Electron app directory."},"warnings":[{"fix":"Use electron-builder or electron-forge instead.","message":"Package uses deprecated babel 5.x for uglification, which may fail with modern JavaScript syntax.","severity":"gotcha","affected_versions":"<=1.0.9"},{"fix":"Avoid using this package; update to a maintained alternative.","message":"colors.js and faker.js supply chain incident (2022) - this package's dependency on colors.js may still be vulnerable.","severity":"security","affected_versions":"all"},{"fix":"Ensure your code is transpiled to ES5 or use a modern builder.","message":"As of v1.0.1, babel replaced uglify-js; expect different behavior for ES6+ syntax.","severity":"breaking","affected_versions":">=1.0.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install' in the electron-compiler directory or use a newer version of the tool.","cause":"babel dependency not installed or outdated.","error":"Error: Cannot find module 'babel'"},{"fix":"Ensure you provide the correct path to your Electron app root.","cause":"The specified path does not contain a package.json.","error":"Error: ENOENT: no such file or directory, open 'package.json'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}