javascript_darwin 2.0.0 copy "javascript_darwin: ^2.0.0" to clipboard
javascript_darwin: ^2.0.0 copied to clipboard

PlatformiOSmacOS

An iOS & MacOS implementation of the javascript_flutter plugin

JavaScript Darwin #

License: MIT

Enable your app to evaluate javascript programs. A simple library that provides a javascript environment where you can run your javascript code.

The iOS and macOS implementation of javascript_flutter which provides access to a JavaScript environment through [JavaScriptDarwin] platform.

Implementation #

The iOS, & MacOS plugin javascript_darwin depends on Apple's JavaScriptCore framework for its JSContext API.

The implementation uses FFI for communication, taken from pub.flutter-io.cn:flutter_js, and pub.flutter-io.cn:flutter_jscore flutter packages (With some additional improvements).

Usage #

This package is endorsed, which means you can simply use javascript_flutter package normally. This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.

However, if you import this package to use any of its APIs directly, you should add it to your pubspec.yaml as usual.