async-query-selector-all
v2.0.0
Published
async version of `querySelector()` and `querySelectorAll()`
Downloads
5
Readme
async-query-selector-all
async version of querySelector()
and querySelectorAll()
Install
npm i async-queryselector
Use
import {
asyncQuerySelector,
asyncQuerySelectorAll,
} from './dist/async-query-selector.js'
const app = await asyncQuerySelector('.app')
const button = await asyncQuerySelector('button', app)
for await(const img = asyncQuerySelectorAll('img[hidden]', app)){
img.hidden = false
}