Git Product home page Git Product logo

psfeng / clearscript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microsoft/clearscript

0.0 1.0 0.0 27.77 MB

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

License: MIT License

C# 88.26% C++ 10.57% C 0.05% Batchfile 0.23% Objective-C 0.03% JavaScript 0.44% VBScript 0.06% Makefile 0.15% Shell 0.13% PowerShell 0.08%

clearscript's Introduction

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
  • (V8) Support for fast data transfer to and from JavaScript typed arrays
  • (V8) Support for JavaScript modules
  • (JavaScript) Support for CommonJS modules
  • ๐Ÿ†• (V8) Automatic conversion between .NET BigInteger and JavaScript BigInt.
  • ๐Ÿ†• (V8) Optional automatic conversion between .NET DateTime and JavaScript Date.
  • ๐Ÿ†• (V8) Optional automatic conversion between .NET tasks and JavaScript promises.
  • ๐Ÿ†• Support for .NET Core 3.1 and .NET 5.0 on Windows (x86/x64/arm64), Linux (x64/arm64), and macOS (x64).

Installation

Composite packages

  • ClearScript
  • ClearScript.win-arm64
  • ClearScript.linux-x64
  • ClearScript.linux-arm64
  • ClearScript.osx-x64

Component packages

  • ClearScript.Core
  • ClearScript.Windows.Core
  • ClearScript.Windows
  • ClearScript.V8

V8 native assembly packages

  • ClearScript.V8.Native.win-x86
  • ClearScript.V8.Native.win-x64
  • ClearScript.V8.Native.win-arm64
  • ClearScript.V8.Native.linux-x64
  • ClearScript.V8.Native.linux-arm64
  • ClearScript.V8.Native.osx-x64

Miscellaneous packages

  • Microsoft.ClearScript.V8.ICUData

Documentation

clearscript's People

Contributors

clearscriptlib avatar phxnsharp avatar taritsyn avatar drewnoakes avatar fyers avatar serpen avatar dcrusader avatar skacurt avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.