217 people following this project (follow)

Project Description

Javascript .NET integrates Google's V8 Javascript engine and exposes it to the CLI environment. Javascript .NET compiles (at runtime) and executes scripts directly from .NET code. It allows CLI objects to be exposed and manipulated directly from the executed Javascript.

Quick Start

To get started, please read this quick integration overview in the documentation section.

Sample "Hello World" running through Javascript

// Initialize a context
using (JavascriptContext context = new JavascriptContext()) {

    // Setting external parameters for the context
    context.SetParameter("console", new SystemConsole());
    context.SetParameter("message", "Hello World !");
    context.SetParameter("number", 1);

    // Script
    string script = @"
        var i;
        for (i = 0; i < 5; i++)
            console.Print(message + ' (' + i + ')');
        number += i;
    ";

    // Running the script
    context.Run(script);

    // Getting a parameter
    Console.WriteLine("number: " + context.GetParameter("number"));
}

Downloads

Click here to get the latest release.

Deployment

Javascript .NET is deployed as a part of your application and fits inside a single assembly.

People behind Javascript .NET

Noesis Innovation

The Javascript .NET project was brought to you by the people at Noesis Innovation. Unfortunately they lost interest, so now other people take care of it.

Other projects by Noesis Innovation

Discover Google's WebP image format. WebP for .NET is the very first official release of this new format on the Windows platform.

Last edited Apr 26 at 12:37 AM by oliverbock, version 42