electron-evaluate
Evaluate some code in an Electron context.
Install
npm install electron-evaluate
Usage
const electronEvaluate = const result = await
API
electronEvaluate(function_, arguments_, options)
Returns a cancelable promise which resolves with the return value of function_
. To cancel it, use .cancel()
on the return value.
function_
Type: (...arguments_) => any | Promise<any>
The function to evaluate in the Electron context.
arguments_
Type: any[]
An array of arguments to include as arguments when calling function_
.
options
Type: object
Options to pass to new BrowserWindow()
.