Socket
Socket
Sign inDemoInstall

exdom

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    exdom

Essential DOM utilities


Version published
Weekly downloads
10
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

v1.0.1

  • Improve nextFrame behavior
  • Fix reconcile key function
  • Update docs
  • Update deps

Readme

Source

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

Keywords

FAQs

Last updated on 13 May 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc