프로젝트
GitHub에서 보기
ClearFoundry/ClearScript
소개
.NET 애플리케이션에 스크립팅 기능을 추가하는 라이브러리입니다. Windows, Linux, macOS에서는 V8을 지원하고, Windows에서는 JScript와 VBScript를 지원합니다.
개발 도구What you can do
- 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
- Methods, properties, fields, events
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +3
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalDescription
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
BigIntegerand JavaScriptBigInt.Optional automatic conversion between .NET
DateTimeand JavaScriptDate.Optional automatic conversion between .NET tasks and JavaScript promises.
- 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.
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
Httpbinservice. - Michael Rose for generously providing the So Simple Jekyll theme.
- Toptal for generously providing the Toptal JavaScript Minifier.
관련 프로젝트 살펴보기
불러오는 중…
