EdgeJs 22.12.0
dotnet add package EdgeJs --version 22.12.0
NuGet\Install-Package EdgeJs -Version 22.12.0
<PackageReference Include="EdgeJs" Version="22.12.0" />
paket add EdgeJs --version 22.12.0
#r "nuget: EdgeJs, 22.12.0"
// Install EdgeJs as a Cake Addin #addin nuget:?package=EdgeJs&version=22.12.0 // Install EdgeJs as a Cake Tool #tool nuget:?package=EdgeJs&version=22.12.0
About
With Edge.js you can script Node.js in a .NET and .NET in Node.js.
Edge.js allows you to run Node.js and .NET code in one process. You can call Node.js functions from .NET and .NET functions from Node.js.
Edge.js takes care of marshaling data between CLR and V8. Edge.js also reconciles threading models of single-threaded V8 and multi-threaded CLR. Edge.js ensures correct lifetime of objects on V8 and CLR heaps.
Script CLR from Node.Js on Windows with .NET Framework.
NOTE Scripting Node.Js from CLR is only supported on Windows .NET Framework 4.5 - 4.8
More documentation is available at Edge.Js GitHub page.
NuGet package compiled using Node.js v22.12.0.
How to use
using System;
using System.Threading.Tasks;
using EdgeJs;
class Program
{
public static async Task Start()
{
var func = Edge.Func(@"
return function (data, callback) {
callback(null, 'Node.js welcomes ' + data);
}
");
Console.WriteLine(await func(".NET"));
}
static void Main(string[] args)
{
Start().Wait();
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.6.2
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.