Skip to content

yukulele/async-query-selector-all

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

async-query-selector-all

async version of querySelector() and querySelectorAll()

Install

npm i async-query-selector-all

Use

import {
  asyncQuerySelector,
  asyncQuerySelectorAll,
} from 'async-query-selector-all'

const app = await asyncQuerySelector('.app')
const button = await asyncQuerySelector('button', app)

for await (const img of asyncQuerySelectorAll('img[hidden]', app)) {
  img.hidden = false
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors