{"repo":"dint-dev/universal_html","free":true,"listed":false,"github":"https://github.com/dint-dev/universal_html","clone":"git clone https://github.com/dint-dev/universal_html.git","description":"Cross-platform 'dart:html'.","language":"Dart","stars":208,"topics":["dart","flutter"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"Introduction A cross-platform replacement for dart:html (or package:web ): Eases cross-platform development You can use this package in browsers, mobile, desktop, and server-side VM, and Node.JS. Just replace dart:html / package:web imports with package:universal html/universal html.dart . Normal dart:html will continue to be used when application run in browsers. Extensive support for processing HTML and XML documents Parse, manipulate, and print DOM nodes. Find DOM nodes with querySelectorAll and other CSS query methods. EventSource streaming support Cross-platform dart:html EventSource (\"application/event-stream\"). If you want to customize EventSource HTTP headers outside browsers, see EventSourceOutsideBrowser. The project is licensed under the Apache License 2.0. Some of the source code was adopted from the original dart:html in Dart SDK, which is documented in the relevant files. Documentation API reference Github project We appreciate feedback, issue reports, and pull requests. Similar projects universal io (cross-platform dart:io ) jsdom (DOM implementation in Javascript) Getting started 1. Add dependency In pubspec.yaml : 2. Use Examples Parsing HTML Use parseHtmlDocument: Parsing XML Use parseXmlDocument: Scraping a website Load a Window with WindowController: EventSource EventSource (see mozilla.org) is a browser API for reading \"application/event-stream\" streams. It has been supported by browsers for a long time. EventSource requests from real browsers are typical","default_branch":null,"files":null,"tree":[],"storefront":"/r/dint-dev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dint-dev/universal_html/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}