19.1.0 • Published 10 months ago
ngx-electronyzer v19.1.0
Angular library that provides integration of the Electron API into an Angular application
The library was built as a replacement of ngx-electron, which is not currently under development.
Install
npm install ngx-electronyzerUsage
The library consists of an Angular service that acts as a wrapper over the Electron API. You can use Angular dependency injection to import the service:
import { Component } from '@angular/core';
import { ElectronService } from 'ngx-electronyzer';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html'
})
export class AppComponent {
constructor(private electronService: ElectronService) { }
}The service is currently exposing the following capabilities:
desktopCapturer- Electron Desktop capturing APIipcRenderer- Electron IpcRendererwebFrame- Electron WebFrameclipboard- Electron ClipboardcrashReporter- Electron CrashReportershell- Electron Shell APInativeImage- Electron NativeImage APIisElectronApp- Indicates if app is being executed as a desktop oneisMacOS- Indicates if app is running onmacOSisWindows- Indicates if app is running onWindowsisLinux- Indicates if app is running onLinuxisX86- Indicates if app is running onx86architectureisX64- Indicates if app is running onx64architectureisArm- Indicates it app is running onARMarchitecture
The remote module is not supported in this library because it is no longer available in Electron, as it was the case in ngx-electron. You can read more about the removal here.
🙏 Acknowledgements
Many thanks to Thorsten Hans for his great work and inspiration on the original integration with ngx-electron.