Socket
Socket
Sign inDemoInstall

unist-util-visit

Package Overview
Dependencies
3
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.0.1

4

package.json
{
"name": "unist-util-visit",
"version": "3.0.0",
"version": "3.0.1",
"description": "unist utility to visit nodes",

@@ -68,3 +68,3 @@ "license": "MIT",

"unified": "^9.0.0",
"xo": "^0.38.0"
"xo": "^0.39.0"
},

@@ -71,0 +71,0 @@ "scripts": {

@@ -27,6 +27,6 @@ # unist-util-visit

```js
var u = require('unist-builder')
var visit = require('unist-util-visit')
import {u} from 'unist-builder'
import {visit} from 'unist-util-visit'
var tree = u('tree', [
const tree = u('tree', [
u('leaf', '1'),

@@ -38,3 +38,3 @@ u('node', [u('leaf', '2')]),

visit(tree, 'leaf', function(node) {
visit(tree, 'leaf', (node) => {
console.log(node)

@@ -41,0 +41,0 @@ })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc