Skip to content
A library for adding scripting to .NET applications. Supports JavaScript (via V8 and JScript) and VBScript.
C# C++ JavaScript Batchfile Visual Basic C
Branch: master
Clone or download
ClearScriptLib ClearScript 5.6: Added initial support for JavaScript modules (V8 onl…
…y, GitHub Issue #114); added initial support for CommonJS modules (V8 and JScript); added ScriptEngine.ExecuteDocument and ScriptEngine.EvaluateDocument; added V8ScriptEngine.CompileDocument and V8Runtime.CompileDocument; added support for machine-level deployment (GitHub Issue #117); added Extensions and JavaScriptExtensions to facilitate specific scenarios; added implicit conversion of host method arguments via user-defined operators (GitHub Issue #115); patched a V8 issue that causes occasional script execution failure in 32-bit processes (GitHub Issue #111); fixed accessibility of public methods overriden by internal classes (GitHub Issue #112); updated deployment and API documentation. Tested with V8 7.6.303.28.
Latest commit 3f4e25e Jul 31, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ClearScript ClearScript 5.6: Added initial support for JavaScript modules (V8 onl… Jul 31, 2019
ClearScriptBenchmarks ClearScript 5.6: Added initial support for JavaScript modules (V8 onl… Jul 31, 2019
ClearScriptConsole ClearScript 5.6: Added initial support for JavaScript modules (V8 onl… Jul 31, 2019
ClearScriptTest ClearScript 5.6: Added initial support for JavaScript modules (V8 onl… Jul 31, 2019
NuGet ClearScript 5.6: Added initial support for JavaScript modules (V8 onl… Jul 31, 2019
docs ClearScript 5.6: Added initial support for JavaScript modules (V8 onl… Jul 31, 2019
.gitignore Version 5.5.4: Overhauled ScriptEngine.AccessContext support to fix G… Nov 19, 2018
ClearScript.NoV8.sln Centralize version, bump to 5.0.1. Test fixes. Feb 4, 2013
ClearScript.NoV8.sln.DotSettings ClearScript 5.6: Added initial support for JavaScript modules (V8 onl… Jul 31, 2019
ClearScript.sln Version 5.5.1: Switched to custom WebSocket implementation for V8 Ins… Dec 26, 2017
ClearScript.sln.DotSettings ClearScript 5.6: Added initial support for JavaScript modules (V8 onl… Jul 31, 2019
License.txt Tweaked licenses slightly. Oct 9, 2018
ReadMe.md Added NuGet package link to Readme.md. Sep 26, 2018
V8Update.cmd ClearScript 5.6: Added initial support for JavaScript modules (V8 onl… Jul 31, 2019
Version.tt ClearScript 5.6: Added initial support for JavaScript modules (V8 onl… Jul 31, 2019

ReadMe.md

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
  • 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

Documentation

Installation

You can’t perform that action at this time.