![]() |
VOOZH | about |
dotnet add package Neuroglia.Data.Expressions.JavaScript --version 4.24.0
NuGet\Install-Package Neuroglia.Data.Expressions.JavaScript -Version 4.24.0
<PackageReference Include="Neuroglia.Data.Expressions.JavaScript" Version="4.24.0" />
<PackageVersion Include="Neuroglia.Data.Expressions.JavaScript" Version="4.24.0" />Directory.Packages.props
<PackageReference Include="Neuroglia.Data.Expressions.JavaScript" />Project file
paket add Neuroglia.Data.Expressions.JavaScript --version 4.24.0
#r "nuget: Neuroglia.Data.Expressions.JavaScript, 4.24.0"
#:package Neuroglia.Data.Expressions.JavaScript@4.24.0
#addin nuget:?package=Neuroglia.Data.Expressions.JavaScript&version=4.24.0Install as a Cake Addin
#tool nuget:?package=Neuroglia.Data.Expressions.JavaScript&version=4.24.0Install as a Cake Tool
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.
Add the package to your .NET project:
dotnet add package Neuroglia.Data.Expressions.JavaScript
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);
After setup, you can start using the evaluator to process expressions.
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; }
}
JavaScript with .NET applications.Feel free to contribute to this project! Please submit issues, feature requests, or pull requests on the GitHub repository.
This project is licensed under the Apache 2.0 license.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
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 | 450 | 8/18/2025 |
| 4.23.1 | 252 | 6/19/2025 |
| 4.23.0 | 402 | 6/11/2025 |
| 4.22.0 | 259 | 5/26/2025 |
| 4.21.0 | 289 | 4/2/2025 |
| 4.20.1 | 250 | 3/14/2025 |
| 4.20.0 | 281 | 3/12/2025 |
| 4.19.5 | 324 | 3/3/2025 |
| 4.19.4 | 225 | 2/27/2025 |
| 4.19.3 | 232 | 2/21/2025 |
| 4.19.2 | 234 | 2/3/2025 |
| 4.19.1 | 629 | 1/31/2025 |
| 4.19.0 | 270 | 1/24/2025 |
| 4.18.1 | 524 | 12/10/2024 |
| 4.18.0 | 261 | 12/10/2024 |
| 4.16.2 | 323 | 11/20/2024 |
| 4.16.1 | 213 | 11/18/2024 |
| 4.16.0 | 291 | 11/14/2024 |
| 4.15.9 | 217 | 11/14/2024 |
| 4.15.8 | 695 | 10/11/2024 |