@http404/dom
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

A small package to manipulate the DOM.

Usage

npm install --save @http404/dom

import dom from 'dom';

Environment

  • [x] isMobileDevice
  • [x] supportsTouchEvent
  • [x] prefersReducedMotion
  • [x] prefersColorScheme
  • [ ] httpGet
  • [ ] events

Manipulation

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

CSS Style

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

Tests

  • [x] reading.test.ts
  • [ ] creating.test.ts
  • [x] attributes.test.ts

Fix

  • [ ] build documentation

Ressources

link
link

example package
vitest reference\

Readme

Keywords

none

Package Sidebar

Install

npm i @http404/dom

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

9.95 kB

Total Files

12

Last publish

Collaborators

  • http404