Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A library for adding scripting to .NET applications. Supports V8 (Windows, Linux, macOS) and JScript/VBScript (Windows).

License

NotificationsYou must be signed in to change notification settings

microsoft/ClearScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Banner

Twitter Follow

Description

ClearScript is a library that makes it easy to add scripting to your .NET applications. It currently supports JavaScript (viaV8 andJScript) andVBScript.

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 andVBScript
  • 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
  • V8 Support for fast data transfer to and fromJavaScript typed arrays
  • V8 Support forJavaScript modules
  • V8JScript Support forCommonJS modules
  • V8 Automatic conversion between .NETBigInteger and JavaScriptBigInt.
  • V8 Optional automatic conversion between .NETDateTime and JavaScriptDate.
  • V8 Optional automatic conversion between .NETtasks and JavaScriptpromises.
  • Support for .NET 5.0+, .NET Framework 4.6.2+, .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.

ClearScript.Complete

Composite packages

Everything you need for one platform.

PlatformPackages
WindowsClearScriptClearScript.win-arm64
LinuxClearScript.linux-x64ClearScript.linux-armClearScript.linux-arm64
macOSClearScript.osx-x64ClearScript.osx-arm64

Component packages

Cross-platform libraries and data.

ComponentPackages
CoreClearScript.Core
JScript/VBScriptClearScript.Windows.CoreClearScript.Windows
V8ClearScript.V8Microsoft.ClearScript.V8.ICUData

V8 native assembly packages

Platform-specific V8 libraries.

PlatformPackages
WindowsClearScript.V8.Native.win-x86ClearScript.V8.Native.win-x64ClearScript.V8.Native.win-arm64
LinuxClearScript.V8.Native.linux-x64ClearScript.V8.Native.linux-armClearScript.V8.Native.linux-arm64
macOSClearScript.V8.Native.osx-x64ClearScript.V8.Native.osx-arm64

Documentation

Acknowledgments

We'd like to thank:

About

A library for adding scripting to .NET applications. Supports V8 (Windows, Linux, macOS) and JScript/VBScript (Windows).

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp