Skip to content

A library for adding scripting to .NET applications on Windows. Supports JavaScript (via V8 and JScript) and VBScript.

License

Notifications You must be signed in to change notification settings

phxnsharp/ClearScript

 
 

Repository files navigation

Description

ClearScript is a library that makes it easy to add scripting to your .NET applications on Windows. 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
  • 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 from JavaScript typed arrays
  • 🆕 (V8) Support for JavaScript modules
  • 🆕 (JavaScript) Support for CommonJS modules
  • 🆕 Support for .NET Core 3.1 on Windows.

Installation

Nuget

Documentation

About

A library for adding scripting to .NET applications on Windows. Supports JavaScript (via V8 and JScript) and VBScript.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 83.3%
  • C++ 15.6%
  • JavaScript 0.6%
  • Batchfile 0.3%
  • VBScript 0.1%
  • C 0.1%