.NET and Node.js in-process on Electron
================

This is a fork of [edge-js](https://github.com/agracio/edge-js) adapted to support [Electron](https://github.com/electron/electron/)

Compatible with

* Electron  9.x    - Node.js v12.14.1
* Electron 10.x    - Node.js v12.16.3

Usage is the same as edge or edge-js, replace `require('edge')` or `require('edge-js')` with `require('edgetron')`:

```bash
npm install edgetron
```

```diff
+var edge = require('edgetron');

var helloWorld = edge.func(function () {/*
    async (input) => {
        return ".NET Welcomes " + input.ToString();
    }
*/});
```

* Requirements Windows

You must install [Microsoft Visual C++ Redistributable (x86)](https://www.itechtics.com/microsoft-visual-c-redistributable-versions-direct-download-links/#6-microsoft-visual-c-redistributable-2019)

* Why use `edgetron`

Electron is built using specific version of Node.js. In order to use `edge` in Electron project you would need to recompile it using the same Node.js version and Electron headers.

`edgetron-js` comes precompiled with correct Node.js versions and headers.

* Differences from `electron-edge`

* Uses same codebase as `edge-js` that comes with both latest code changes from `edge` project and additional fixes and improvements available in `edge-js` project.
* Supports majority of Electron versions.
