js 0.0.1 copy "js: ^0.0.1" to clipboard
js: ^0.0.1 copied to clipboard

outdatedDart 1 only

Access JavaScript from Dart.

Dart JavaScript Interop #

The js.dart library allows Dart code running in the browser to manipulate JavaScript running in the same page. It is intended to allow Dart code to easily interact with third-party JavaScript libraries.

This library is under construction. More coming soon!

Running Tests #

First, use the Pub Package Manager to install dependencies:

pub install

To run browser tests on Dartium, simply open test/browser_tests.html in Dartium.

To run browser tests using JavaScript in any modern browser, first use the following command to compile to JavaScript:

dart2js -otest/browser_tests.dart.js test/browser_tests.dart

and then open test/browser_tests.html in any browser.

376
likes
0
pub points
98%
popularity

Publisher

verified publisherdart.dev

Access JavaScript from Dart.

License

unknown (license)

Dependencies

unittest

More

Packages that depend on js