Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/run-electron
Run Electron without all the junk terminal output
https://github.com/sindresorhus/run-electron
cleaning cli-app electron nodejs npm-package terminal
Last synced: 2 days ago
JSON representation
Run Electron without all the junk terminal output
- Host: GitHub
- URL: https://github.com/sindresorhus/run-electron
- Owner: sindresorhus
- License: mit
- Created: 2018-08-10T16:49:57.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-04-30T06:40:20.000Z (9 months ago)
- Last Synced: 2025-01-11T16:29:15.841Z (10 days ago)
- Topics: cleaning, cli-app, electron, nodejs, npm-package, terminal
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 199
- Watchers: 5
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-electron - run-electron - Run Electron without all the junk terminal output. (Tools / For Electron)
- awesome-electron - run-electron - Run Electron without all the junk terminal output. ![](https://img.shields.io/github/stars/sindresorhus/run-electron.svg?style=social&label=Star) (Library / Uncategorized)
README
# run-electron
> Run Electron without all the junk terminal output
Electron spews out a lot of junk terminal output when you run it. No more!
I have tried to get the Electron team to fix this, but they are not responding to [my issue](https://github.com/electron/electron/issues/12438), nor any others: [electron/electron#12185](https://github.com/electron/electron/issues/12185), [electron/electron#13008](https://github.com/electron/electron/issues/13008), [electron/electron#13502](https://github.com/electron/electron/issues/13502).
###### Before
```console
$ electron .
2018-08-10 22:52:14.068 Electron[90710:4891777] *** WARNING: Textured window is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow's -titlebarAppearsTransparent=YES instead.
2018-08-10 22:52:37.919 Electron Helper[90714:4892173] Couldn't set selectedTextBackgroundColor from default ()
[90789:0810/225757.360355:ERROR:CONSOLE(0)] "Failed to load https://chrome-devtools-frontend.appspot.com/serve_file/@7accc8730b0f99b5e7c0702ea89d1fa7c17bfe33/product_registry_impl/product_registry_impl_module.js: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'chrome-devtools://devtools' is therefore not allowed access. The response had HTTP status code 404.", source: chrome-devtools://devtools/bundled/inspector.html?remoteBase=https://chrome-devtools-frontend.appspot.com/serve_file/@7accc8730b0f99b5e7c0702ea89d1fa7c17bfe33/&can_dock=true&toolbarColor=rgba(223,223,223,1)&textColor=rgba(0,0,0,1)&experiments=true (0)
[90789:0810/225757.360445:ERROR:CONSOLE(22)] "Empty response arrived for script 'https://chrome-devtools-frontend.appspot.com/serve_file/@7accc8730b0f99b5e7c0702ea89d1fa7c17bfe33/product_registry_impl/product_registry_impl_module.js'", source: chrome-devtools://devtools/bundled/inspector.js (22)
[90789:0810/225757.361236:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[90789:0810/225757.361293:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
App logging
[90789:0810/225802.898597:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[90789:0810/225803.872738:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[90789:0810/225803.898240:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[90789:0810/225803.898297:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
...
```###### After
```console
$ run-electron .
App logging
```## Install
```sh
npm install run-electron electron
```*Note: Electron is not bundled in this package.*
## Usage
Just use it like it's `electron`.
```sh
run-electron --help
```## Related
- [electron-util](https://github.com/sindresorhus/electron-util) - Useful utilities for developing Electron apps and modules
- [electron-timber](https://github.com/sindresorhus/electron-timber) - Pretty logger for Electron apps
- [electron-reloader](https://github.com/sindresorhus/electron-reloader) - Simple auto-reloading for Electron apps during development
- [electron-debug](https://github.com/sindresorhus/electron-debug) - Adds useful debug features to your Electron app
- [More…](https://github.com/search?q=user%3Asindresorhus+electron-&type=Repositories)