Skip to content
/ qree Public

A tiny wrapper for document.querySelector and document.querySelectorAll

Notifications You must be signed in to change notification settings

Saunved/qree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

$ returns the first element in the DOM (document.querySelector)
$$ returns an array of elements from the DOM (document.querySelectorAll)

Installation

npm i qree --save
import {$, $$} from 'qree';

Or via CDN

<script src="https://cdn.jsdelivr.net/npm/qree@1.0.4/dist/qree.min.js">

Usage

let button = $(selector)
let headings = $$(headings)

Example

let button = $('#click-me'); // Get the button with ID "click-me"
let headings = $$('article > h1'); // Get all H1 tags inside article

About

A tiny wrapper for document.querySelector and document.querySelectorAll

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published