@thelight/dommyjs

3.1.0 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @thelight/dommyjs

      Weekly Downloads

      0

      Version

      3.1.0

      License

      MIT

      Unpacked Size

      22.9 kB

      Total Files

      4

      Last publish

      Collaborators

      • thelight