async-query-selector-all

2.0.3 • Public • Published

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
}

/async-query-selector-all/

    Package Sidebar

    Install

    npm i async-query-selector-all

    Weekly Downloads

    1

    Version

    2.0.3

    License

    none

    Unpacked Size

    11.1 kB

    Total Files

    7

    Last publish

    Collaborators

    • yukulele