
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Fully typed utility to visit trees and apply a visitor before visiting other nodes
Utility function to visit all or some nodes of a generic tree, where children of a node are found in the children property. A visitor is applied before visiting the children and siblings, hence it is calle pre-visit.
Besides a visitor you can provide a predicate to filter nodes.
It works fine with all kinds of trees, I use it mainly as a typed and more feature rich replacement to unist-util-visit to visit remark trees.
This package provides a fully typed utility to visit trees and apply a visitor before visiting other nodes.
If you want to work with trees and even be able to transform them, while visiting.
This package is ESM only.
In Node.js (version 12.20+, 14.14+, or 16.0+), install with npm:
npm install pre-visit
This is still in very early alpha, hence, I can only provide very little documentation.
Use at your own risk.
FAQs
Fully typed utility to visit trees and apply a visitor before visiting other nodes
We found that pre-visit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.