JSPM

@thelight/dommyjs

3.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11
  • Score
    100M100P100Q37220F
  • License MIT

DOMmy.js is a powerful yet super light Javascript library which allows Javascript developers to write less code while dramatically improving efficiency of Vanilla Javascript, making it more elegant and less verbose, using Vanilla Javascript, with no need for anything else but Vanilla Javascript.

Package Exports

  • @thelight/dommyjs
  • @thelight/dommyjs/src/dommy.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@thelight/dommyjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

DOMmy.js

DOMmy.js is a powerful yet super light Javascript library which allows Javascript developers to write less code while dramatically improving efficiency. The goal of DOMmy.js is to "enhance" the syntax of Vanilla Javascript, making it more elegant and less verbose, using Vanilla Javascript, with no need for anything else but Vanilla Javascript. DOMmy.js is a standalone, no-dependency script, meaning you can use it alone or along you favourite framework.

The core of DOMmy.js lies in two functions: $ and $$ which allows to respectively select one element by id and a full collection of elements by a CSS selector. Once you get your element or element collection, you can use the DOMmy.js methods to seamlessy work with DOM operations. Setter methods, like html, css, on, attr etc. allow to set data, and are chainable, while getter methods such as getStyle, getCSS, getAttr etc. allow to retrieve data.

To install: npm install @thelight/dommyjs

Visit DOMmy.js Home Page on RiccardoDegni.com for more info.