Neuroglia.Data.Expressions.JavaScript 4.24.0

Prefix Reserved
dotnet add package Neuroglia.Data.Expressions.JavaScript --version 4.24.0
                    
NuGet\Install-Package Neuroglia.Data.Expressions.JavaScript -Version 4.24.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Neuroglia.Data.Expressions.JavaScript" Version="4.24.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Neuroglia.Data.Expressions.JavaScript" Version="4.24.0" />
                    
Directory.Packages.props
<PackageReference Include="Neuroglia.Data.Expressions.JavaScript" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Neuroglia.Data.Expressions.JavaScript --version 4.24.0
                    
#r "nuget: Neuroglia.Data.Expressions.JavaScript, 4.24.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Neuroglia.Data.Expressions.JavaScript@4.24.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Neuroglia.Data.Expressions.JavaScript&version=4.24.0
                    
Install as a Cake Addin
#tool nuget:?package=Neuroglia.Data.Expressions.JavaScript&version=4.24.0
                    
Install as a Cake Tool

Neuroglia.Data.Expressions.JavaScript

A .NET package to evaluate expressions using JavaScript. This library integrates JavaScript with .NET applications, making it simple to work with JSON data transformations and expressions.

Getting Started

Installation

Add the package to your .NET project:

dotnet add package Neuroglia.Data.Expressions.JavaScript

Configuration

Optionally, configure the JQ Expression Evaluator in your application's Dependency Injection (DI) container:

services.AddJavaScriptExpressionEvaluator(options => 
{
    options.UseSerializer<MyJsonSerializerImplementation>(); // Optional: Defaults to the first registered `IJsonSerializer`
}, ServiceLifetime.Singleton);

Usage

After setup, you can start using the evaluator to process expressions.

Example Code
var defaultEvaluator = serviceProvider.GetRequiredService<IExpressionEvaluator>();
var explicitEvaluator = serviceProvider.GetRequiredService<IExpressionEvaluatorProvider>().GetEvaluator("js");

var expression = "{ \"foo\": .foo, \"bar\": $param1.bar }";
var input = new
{
    foo = "bar"
};
var arguments = new Dictionary<string, object>()
{
    { 
        "param1", 
        new
        {
            bar = "baz"
        } 
    }
};

var result = await defaultEvaluator.EvaluateAsync(expression, input, arguments, typeof(MyResult));

public class MyResult
{
    public string Foo { get; set; }
    public string Bar { get; set; }
}

Features

  • Easily integrate JavaScript with .NET applications.
  • Support for Dependency Injection with customizable options.
  • Strongly-typed evaluation for JSON transformation.
  • Flexible serialization options.

Requirements

  • .NET Version: Compatible with .NET 9+.

Contributing

Feel free to contribute to this project! Please submit issues, feature requests, or pull requests on the GitHub repository.


License

This project is licensed under the Apache 2.0 license.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Neuroglia.Data.Expressions.JavaScript:

Repository Stars
serverlessworkflow/synapse
Serverless Workflow Management System (WFMS)
Version Downloads Last Updated
4.24.0 297 8/18/2025
4.23.1 189 6/19/2025
4.23.0 334 6/11/2025
4.22.0 196 5/26/2025
4.21.0 220 4/2/2025
4.20.1 180 3/14/2025
4.20.0 215 3/12/2025
4.19.5 257 3/3/2025
4.19.4 161 2/27/2025
4.19.3 175 2/21/2025
4.19.2 163 2/3/2025
4.19.1 549 1/31/2025
4.19.0 179 1/24/2025
4.18.1 425 12/10/2024
4.18.0 192 12/10/2024
4.16.2 266 11/20/2024
4.16.1 163 11/18/2024
4.16.0 220 11/14/2024
4.15.9 161 11/14/2024
4.15.8 629 10/11/2024
4.15.7 175 10/9/2024
4.15.6 496 9/10/2024
4.15.5 164 9/10/2024
4.15.4 293 9/8/2024
4.15.3 252 9/2/2024
4.15.2 176 8/30/2024
4.15.1 168 8/26/2024
4.15.0 220 8/26/2024
4.14.1 208 8/21/2024
4.14.0 207 8/16/2024
4.13.0 189 8/16/2024
4.12.10 199 8/14/2024
4.12.9 200 8/14/2024
4.12.8 192 8/12/2024
4.12.7 197 8/8/2024
4.12.6 137 7/25/2024
4.12.5 190 7/9/2024
4.12.4 174 7/9/2024
4.12.3 161 7/8/2024
4.12.2 213 6/26/2024
4.12.1 207 6/18/2024
4.12.0 152 6/17/2024
4.11.3 178 6/13/2024
4.11.2 155 6/12/2024
4.11.1 168 6/7/2024
4.11.0 183 5/31/2024
4.10.0 189 5/30/2024
4.9.15 169 5/20/2024
4.9.14 166 5/15/2024
4.9.13 162 5/12/2024
4.9.12 140 5/11/2024
4.9.11 149 5/8/2024
4.9.10 166 5/7/2024
4.9.9 187 5/6/2024
4.9.8 184 5/6/2024
4.9.7 128 5/2/2024
4.9.6 188 4/15/2024
4.9.5 171 4/10/2024
4.9.4 153 4/10/2024
4.9.3 158 4/10/2024
4.9.2 154 4/10/2024
4.9.1 167 4/10/2024
4.9.0 176 4/9/2024
4.8.5 189 4/4/2024
4.8.4 181 4/3/2024
4.8.3 193 3/25/2024
4.8.2 167 3/22/2024
4.8.1 194 3/18/2024
4.8.0 199 3/18/2024
4.7.7 268 12/8/2023
4.7.6 184 12/6/2023
4.7.5 192 12/5/2023
4.7.4 191 12/5/2023
4.7.3 197 12/4/2023
4.7.2 204 12/4/2023
4.7.1 174 12/1/2023
4.7.0 178 11/28/2023
4.6.1 203 11/27/2023
4.6.0 202 11/25/2023
4.5.2 198 11/25/2023
4.5.1 203 11/23/2023
4.5.0 205 11/23/2023
4.4.2 176 11/22/2023
4.4.1 169 11/21/2023
4.4.0 192 11/21/2023
4.3.3 183 11/20/2023
4.3.2 190 11/20/2023
4.3.1 191 11/20/2023
4.3.0 173 11/20/2023
4.2.1 212 11/17/2023
4.2.0 193 11/17/2023
4.1.0 166 11/17/2023
4.0.0 203 11/15/2023
3.10.0 175 11/15/2023
3.9.0 188 11/15/2023
3.8.4 195 11/10/2023
3.8.3 176 11/10/2023
3.8.2 148 11/10/2023
3.8.1 195 11/10/2023
3.8.0 188 11/9/2023
3.7.0 186 11/8/2023
3.6.1 187 11/8/2023
3.6.0 196 11/7/2023
3.5.2 196 11/6/2023
3.5.1 181 11/3/2023
3.5.0 170 11/3/2023
3.4.0 205 10/25/2023
3.3.0 206 10/23/2023
3.2.0 219 10/19/2023
3.1.1 202 10/18/2023
3.1.0 197 10/18/2023
3.0.1 227 10/16/2023
2.1.4 255 7/14/2023
2.1.3 270 6/22/2023
2.1.2 260 5/31/2023
2.1.1 255 5/25/2023
2.1.0 306 4/4/2023