exdom
Essential DOM utilities.
- Query selector shortcuts
- Soft HTML, text, attribute, and input value setters
- Reconciliation
- Type-safe DOM event management
Inspired by learnings from VANILLA TODO,
a case study on viable techniques for vanilla web development.
Installation
Via NPM:
npm install exdom
When not using a bundler, the following additional setup helps:
export * from 'https://cdn.jsdelivr.net/npm/exdom@1.0.1/dist/exdom.min.js';
declare module 'https://cdn.jsdelivr.net/npm/exdom@1.0.1/dist/exdom.min.js' {
export * from 'exdom';
}
import { ... } from './exdom.js';
Usage
See API reference
Tests
npx playwright install
(once)npm test