1.2.2 • Published 8 years ago

short-dom v1.2.2

Weekly downloads
1
License
ISC
Repository
-
Last release
8 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

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago