0.1.2 • Published 1 year ago

@http404/dom v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

A small package to manipulate the DOM.

Usage

npm install --save @http404/dom
import dom from 'dom';

Environment

  • isMobileDevice
  • supportsTouchEvent
  • prefersReducedMotion
  • prefersColorScheme
  • httpGet
  • events

Manipulation

  • get
  • create
  • append
  • render
  • remove
  • class
    • addClass
    • hasClass
    • hasAnyClass
    • hasEveryClass
    • toggleClass
    • toggleClass force on-way operation
    • removeClass

CSS Style

  • injectStyleSheet
  • styles (@todo)
    • addStyles
    • inlineStyle
    • removeStyles
  • animateTo

Tests

  • reading.test.ts
  • creating.test.ts
  • attributes.test.ts

Fix

  • build documentation

Ressources

link\ link

example package\ vitest reference\