Microsoft.ClearScript
7.4.5
Prefix Reserved
Requires NuGet 4.9.0 or higher.
dotnet add package Microsoft.ClearScript --version 7.4.5
NuGet\Install-Package Microsoft.ClearScript -Version 7.4.5
<PackageReference Include="Microsoft.ClearScript" Version="7.4.5" />
paket add Microsoft.ClearScript --version 7.4.5
#r "nuget: Microsoft.ClearScript, 7.4.5"
// Install Microsoft.ClearScript as a Cake Addin #addin nuget:?package=Microsoft.ClearScript&version=7.4.5 // Install Microsoft.ClearScript as a Cake Tool #tool nuget:?package=Microsoft.ClearScript&version=7.4.5
Description
ClearScript is a library that makes it easy to add scripting to your .NET applications. It currently supports JavaScript (via V8 and JScript) and VBScript.
Features
- Simple usage; create a script engine, add your objects and/or types, run scripts
- Support for several script engines: Google's V8, Microsoft's JScript and VBScript
- Exposed resources require no modification, decoration, or special coding of any kind
- Scripts get simple access to most of the features of exposed objects and types:
- Methods, properties, fields, events
- (Objects) Indexers, extension methods, conversion operators, explicitly implemented interfaces
- (Types) Constructors, nested types
- Full support for generic types and methods, including C#-like type inference and explicit type arguments
- Exposed .NET collections support native script iteration mechanisms:
- Scripts can invoke methods with output parameters, optional parameters, and parameter arrays
- Script delegates enable callbacks into script code
- Support for exposing all the types defined in one or more assemblies in one step
- Optional support for importing types and assemblies from script code
- The host can invoke script functions and access script objects directly
- Full support for script debugging
- Support for fast data transfer to and from JavaScript typed arrays
- Support for JavaScript modules
- Support for CommonJS modules
- Automatic conversion between .NET
BigInteger
and JavaScriptBigInt
. - Optional automatic conversion between .NET
DateTime
and JavaScriptDate
. - Optional automatic conversion between .NET tasks and JavaScript promises.
- Support for .NET 5.0+, .NET Framework 4.5+, .NET Core 3.1, and .NET Standard 2.1.
- Support for Windows (x86/x64/arm64), Linux (x64/arm/arm64), and macOS (x64/arm64).
Installation
Complete package
All in one, for all supported platforms.
Composite packages
Everything you need for one platform.
Platform | Packages |
---|---|
Windows | |
Linux | |
macOS |
Component packages
Cross-platform libraries and data.
Component | Packages |
---|---|
Core | |
JScript/VBScript | |
V8 |
V8 native assembly packages
Platform-specific V8 libraries.
Platform | Packages |
---|---|
Windows | |
Linux | |
macOS |
Documentation
Acknowledgments
We'd like to thank:
- The V8 team.
- The Jekyll team.
- Kenneth Reitz for generously providing the
Httpbin
service. - Michael Rose for generously providing the So Simple Jekyll theme.
- Toptal for generously providing the Toptal JavaScript Minifier.
Learn more about Target Frameworks and .NET Standard.
-
- Microsoft.ClearScript.V8 (>= 7.4.5)
- Microsoft.ClearScript.V8.ICUData (>= 7.4.5)
- Microsoft.ClearScript.V8.Native.win-x64 (>= 7.4.5)
- Microsoft.ClearScript.V8.Native.win-x86 (>= 7.4.5)
- Microsoft.ClearScript.Windows (>= 7.4.5)
NuGet packages (19)
Showing the top 5 NuGet packages that depend on Microsoft.ClearScript:
Package | Downloads |
---|---|
YSAI.Core
核心组件:Core ( 抽象、TCP、UDP、HTTP、WS、串口、扩展、处理、反射、转发、脚本、订阅、虚拟地址、WebApi ) |
|
Alternet.Studio.Common.TypeScript
AlterNET Studio allows you to extend your WinForms and WPF .NET applications with code editing, scripting, and user interface designing capabilities. It provides a set of component libraries that enables users of your applications to write scripts in C#, Visual Basic, TypeScript, JavaScript, and Python programming languages to extend your application with custom functionality; run and debug these scripts with a fully-featured debugging engine and design visual user interfaces with graphical Form Designer. This package includes common utility and helper classes required for TypeScript and JavaScript parsing and execution. This multi-target package can be used with .NET applications targeting .NET Framework 4.5.2 or higher. More information about AlterNET Studio can be found here: https://www.alternetsoft.com/products/studio Documentation and sample projects can be downloaded here: https://www.alternetsoft.com/download NOTE: This is a commercial software product and requires purchasing a license for legal usage. Please refer to our licensing FAQ here: https://www.alternetsoft.com/faq#license |
|
ModFramework.Modules.ClearScript
ModFramework module to enable javascript plugins via Microsoft's ClearScript. |
|
Contensive.Processor
This package installs the library files required to create an instance of cp within an application. |
|
Replify
Add a javascript REPL to your c# library |
GitHub repositories (5)
Showing the top 5 popular GitHub repositories that depend on Microsoft.ClearScript:
Repository | Stars |
---|---|
zsh2401/AutumnBox
图形化ADB工具箱
|
|
Implem/Implem.Pleasanter
Pleasanter is a no-code/low-code development platform that runs on .NET. You can quickly create business applications with simple operations.
|
|
koculu/Topaz
Multithreaded Javascript Engine for .NET
|
|
WolvenKit/CyberCAT
CyberPunk 2077 Customization Assistant Tool. Work in progress Savegame editor.
|
|
nightroman/FarNet
Far Manager framework for .NET modules and scripts in PowerShell, F#, JavaScript.
|
Version | Downloads | Last updated |
---|---|---|
7.4.5 | 134,028 | 3/25/2024 |
7.4.4 | 119,310 | 10/17/2023 |
7.4.3 | 52,370 | 8/19/2023 |
7.4.2 | 36,189 | 6/1/2023 |
7.4.1 | 30,328 | 4/8/2023 |
7.4.0 | 8,577 | 3/9/2023 |
7.3.7 | 38,493 | 1/23/2023 |
7.3.6 | 17,910 | 12/20/2022 |
7.3.5 | 15,899 | 11/12/2022 |
7.3.4 | 120,209 | 9/29/2022 |
7.3.3 | 1,294 | 9/28/2022 |
7.3.2 | 6,910 | 9/15/2022 |
7.3.1 | 52,576 | 6/29/2022 |
7.3.0 | 10,050 | 6/2/2022 |
7.2.5 | 16,259 | 5/1/2022 |
7.2.4 | 21,273 | 3/30/2022 |
7.2.3 | 4,698 | 3/5/2022 |
7.2.2 | 32,156 | 2/6/2022 |
7.2.1 | 41,942 | 1/11/2022 |
7.2.0 | 48,821 | 11/22/2021 |
7.1.7 | 35,529 | 10/21/2021 |
7.1.7-preview | 315 | 9/28/2021 |
7.1.6 | 10,224 | 9/21/2021 |
7.1.5 | 40,827 | 7/23/2021 |
7.1.4 | 13,933 | 6/29/2021 |
7.1.3 | 38,383 | 5/26/2021 |
7.1.2 | 14,380 | 4/17/2021 |
7.1.1 | 20,058 | 3/4/2021 |
7.1.0 | 34,190 | 1/22/2021 |
7.0.0 | 39,850 | 11/18/2020 |
7.0.0-rc5 | 918 | 11/5/2020 |
7.0.0-rc4 | 58,659 | 10/29/2020 |
7.0.0-rc3 | 453 | 10/23/2020 |
7.0.0-rc2 | 430 | 10/21/2020 |
7.0.0-rc | 484 | 10/17/2020 |
6.0.2 | 117,708 | 5/29/2020 |
6.0.1 | 21,153 | 4/13/2020 |
6.0.0 | 38,908 | 12/18/2019 |
5.6.0 | 200,946 | 8/1/2019 |
5.5.6 | 66,917 | 5/2/2019 |
5.5.5 | 14,908 | 2/6/2019 |
5.5.4 | 113,127 | 11/20/2018 |
5.5.3 | 4,319 | 9/25/2018 |