async-query-selector-all
v2.0.3
Published
async version of `querySelector()` and `querySelectorAll()`
Downloads
220
Readme
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
}