browlet
v0.1.0-alpha.0
Published
A browser-like TypeScript runtime for JavaScript
Readme
Browlet
Browlet is a browser-like TypeScript runtime. It brings together the repository's DOM, Web IDL, URL, HTML lifecycle, and CSS work behind a higher-level API.
Installation
npm install browletUsage
import { Browlet } from 'browlet';
const browser = new Browlet({
route(url) {
return `<h1>${url}</h1>`;
},
});
await browser.navigate('https://example.test/');Browlet is under active development.
License
MIT
