exdom
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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:

// src/exdom.js or src/exdom.ts
export * from 'https://cdn.jsdelivr.net/npm/exdom@1.0.1/dist/exdom.min.js';

// src/exdom.d.ts
declare module 'https://cdn.jsdelivr.net/npm/exdom@1.0.1/dist/exdom.min.js' {
  export * from 'exdom';
}

// src/app.js or src/app.ts
import { ... } from './exdom.js';

// ...

Usage

See API reference

Tests

  • npx playwright install (once)
  • npm test

Readme

Keywords

Package Sidebar

Install

npm i exdom

Weekly Downloads

8

Version

1.0.1

License

ISC

Unpacked Size

22.3 kB

Total Files

41

Last publish

Collaborators

  • morris4