Skip to content
Craig Minihan edited this page Dec 7, 2016 · 15 revisions

libjsapi is a C++ 11 library which aims to make it much easier to deal with the SpiderMonkey JSAPI.

Currently libjsapi targets SpiderMonkey 50 only. Since JSAPI is a bit of a movable feast we have decided to keep things simple by just targeting a single released version.

It will help you greatly to understand JSAPI before you use libjsapi - but that is not a requirement. If you just want basic JS support in your application then you can probably get through with knowledge from the documentation here.

To use libjsapi effectively you will need some understanding of the following concepts:

You can find code examples in the examples source directory, these can be built by executing the build.sh script (you must build libjsapi first tho).

You can reference the original SpiderMonkey JSAPI documentation here: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/JSAPI_reference