Code Monkey home page Code Monkey logo

spidermonkeysharp's Introduction

SpidermonkeySharp

Interact with the SpiderMonkey JavaScript runtime directly from C#. No custom native/managed bridge or wrapper DLL required. Just grab a recent build of mozjs.dll - from Firefox, for example - and get to work.

Provides managed representations of JSAPI data structures and exposes native JSAPI entry points. Sitting atop the native data structures & entry points are convenient wrapper functions that handle marshalling strings and other data types.

A second, higher-level layer on top of the wrapper functions provides managed classes and functions that dramatically simplify interacting with the VM, ideal for simple use cases. The high-level layer still exposes all the low-level pointers and values, so you can drop down to raw JSAPI when necessary.

This library is still early in development, so many feature additions & performance improvements remain to complete. Please feel free to report issues using the GitHub tracker at https://github.com/kg/SpidermonkeySharp/issues.

Features

  • Read and write object properties
  • Invoke JS functions
  • Expose native & managed functions to JS
  • Automatic mapping of managed delegates to SpiderMonkey JSNative functions
  • Rooting API for precise & correct interaction with JS garbage collector

spidermonkeysharp's People

Contributors

kg avatar

Watchers

 avatar  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.