squery
Yet another jQuery "replacement"
squery
is based on the awesome bling.js and brings the following extensions:
.off
support. Even without a listener..on
and.off
support multiple space-separated event names.$('a')
returns aNode
when only one element is matched, otherwise aNodeList
.
squery
currently weights 376 bytes gzipped.
Install
npm i --save squery
Examples
// working on a single elementclassList;stylebackgroundColor = 'red';;;;window;window; // working on multiple elements;;;
© silverwind, distributed under BSD licence