1.2.2 • Published 10 years ago

short-dom v1.2.2

Weekly downloads
1
License
ISC
Repository
-
Last release
10 years ago

Short DOM

Set of shortened functions and utilities to allow much less code writing when interacting with the DOM.

You can either require specific functions:

var qs = require('short-dom').qs
window.onload = function () {
  qs('#my-div-id');
}

Or invoking the return from your require will just put all the functions in the window/global scope

require('short-dom')();
window.onload = function () {
  qs('#my-div-id');
}
Nativeshort-dom
document.querySelector()qs()
document.querySelectorAll()qsa()
document.getElementById()gid()
document.getElementsByClassName()gclass()
document.getElementByTagName()gtag()
document.createElement()ce()
1.2.2

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago