async-query-selector-all

2.0.0 • Public • Published

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
}

Readme

Keywords

none

Package Sidebar

Install

npm i async-query-selector-all

Weekly Downloads

0

Version

2.0.0

License

none

Unpacked Size

11.4 kB

Total Files

7

Last publish

Collaborators

  • yukulele