| commit | e170bf2cef6b23f132dd0932ef9f7fd0d5f02bce | [log] [tgz] |
|---|---|---|
| author | Devon Carew <devoncarew@google.com> | Fri Dec 15 09:48:20 2023 -0800 |
| committer | GitHub <noreply@github.com> | Fri Dec 15 09:48:20 2023 -0800 |
| tree | 702fcda307a5ccceee8b1021df858cca06193695 | |
| parent | acf0bebdd764d2400dc4e9e18577813c0f9e90c3 [diff] |
move the tool/bindings_generator dart+node script into the top-level bindings_generator/ directory (#123) move the tool/bindings_generator dart+node script into the top-level bindings_generator/ directory
Lightweight browser API bindings built around JS static interop.
This package exposes browser APIs. It's generated from the Web IDL definitions and uses recent Dart language features for zero-overhead bindings.
This package is intended to replace dart:html and similar Dart SDK libraries. It will support access to browser APIs from Dart code compiled to either JavaScript or WebAssembly.
The APIs in this package are still fairly provisional and could change rapidly. We'll continue to use semantic versioning as we evolve the APIs.
import 'package:web/web.dart'; void main() { final div = document.querySelector('div') as HTMLDivElement; div.text = 'Text set at ${DateTime.now()}'; }
Based on @webref/idl 3.39.1.
For instructions on re-generating the DOM bindings, see (bindings_generator/README.md)[bindings_generator/README.md].