@elonehoo/dom-traversal
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

dom-traversal

NPM version

Iteratively walk any DOM node.

Install

# npm
npm install --save-dev @elonehoo/dom-traversal

# yarn
yarn add --dev @elonehoo/dom-traversal

# pnpm
pnpm install --save-dev @elonehoo/dom-traversal

Usage

import  iterativelyWalk  from '@elonehoo/dom-traversal'

iterativelyWalk(document.body.childNodes,function (node:Node){
  console.log("node", node)
})

License

MIT License © 2022-PRESENT Elone Hoo

Readme

Keywords

none

Package Sidebar

Install

npm i @elonehoo/dom-traversal

Weekly Downloads

6

Version

0.0.6

License

MIT

Unpacked Size

4.14 kB

Total Files

6

Last publish

Collaborators

  • elonehoo