@verndale/bling.js

Because you want the $ of jQuery without the jQuery

Usage no npm install needed!

<script type="module">
  import verndaleBlingJs from 'https://cdn.skypack.dev/@verndale/bling.js';
</script>

README

bling.js

Because you want the $ of jQuery without the jQuery

Originally created by Paul Irish modified by Verndale.

Usage

NPM installation

npm i @verndale/bling.js

Yarn installation

yarn add @verndale/bling.js

JS

import "@verndale/bling.js"

Docs

Vanilla JavaScript bling.j s
document.querySelector('selector') _$('selector')
node.querySelector('selector') node._$('selector')
document.querySelectorAll('selector') _$('selector')
node.querySelectorAll('selector') node._$('selector')
Array.from(document.querySelectorAll('selector')).filter(callback) * _$('selector').filter(callback) *
window.addEventListener('eventName', callback) window._on('eventName', callback)
node.addEventListener('eventName', callback) node._on('eventName', callback)
nodeList.forEach((node) => node.addEventListener('eventName', callback)) nodeList._on('eventName', callback)

* All array methods are available by default