1.0.0 • Published 6 years ago

himalaya-walk v1.0.0

Weekly downloads
28
License
MIT
Repository
github
Last release
6 years ago

himalaya-walk

Walk for himalaya's abstract syntax tree

Walking through the tree

The package provides a walk method. It allows you to recursively visit every node of the tree.

import {parse} from 'himalaya'
import walk from 'himalaya-walk'

const tree = parse('<div>foo</div>')
walk(tree, node => {
  console.log(node)
})

Related packages