@blivesta/util-selectors

0.0.0 • Public • Published

@blivesta/util-selectors

Install

yarn add @blivesta/util-selectors

Usage

<div class="foo">
  <div class="bar">1</div>
  <div class="bar">2</div>
</div>
import { $$, $$$ } from '@blivesta/util-selectors'

$$$('.bar').length // 2
$$$('.bar', $$('#foo')).forEach((node, i) => {
  node.getAttribute('class') // 'bar'
})

License

Released under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i @blivesta/util-selectors

Weekly Downloads

0

Version

0.0.0

License

MIT

Unpacked Size

158 kB

Total Files

5

Last publish

Collaborators

  • blivesta