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 2.0.1 to 2.0.2

28

package.json
{
"name": "unist-util-visit",
"version": "2.0.1",
"description": "Recursively walk over unist nodes",
"version": "2.0.2",
"description": "unist utility to visit nodes",
"license": "MIT",
"keywords": [
"unist",
"unist-util",
"util",
"utility",
"remark",
"markdown",
"retext",
"rehype",
"mdast",
"hast",
"xast",
"nlcst",
"natural",
"language",
"markdown",
"html",
"xml",
"tree",
"ast",
"node",
"visit",
"walk",
"util",
"utility"
"walk"
],

@@ -43,4 +53,4 @@ "repository": "syntax-tree/unist-util-visit",

"browserify": "^16.0.0",
"dtslint": "^2.0.0",
"nyc": "^14.0.0",
"dtslint": "^3.0.0",
"nyc": "^15.0.0",
"prettier": "^1.0.0",

@@ -54,3 +64,3 @@ "remark": "^11.0.0",

"unified": "^8.0.0",
"xo": "^0.25.0"
"xo": "^0.26.0"
},

@@ -57,0 +67,0 @@ "scripts": {

@@ -17,9 +17,9 @@ # unist-util-visit

```bash
```sh
npm install unist-util-visit
```
## Usage
## Use
```javascript
```js
var u = require('unist-builder')

@@ -66,9 +66,12 @@ var visit = require('unist-util-visit')

— Like `visit`, but with a stack of parents
* [`unist-util-filter`](https://github.com/eush77/unist-util-filter)
* [`unist-util-filter`](https://github.com/syntax-tree/unist-util-filter)
— Create a new tree with all nodes that pass a test
* [`unist-util-map`](https://github.com/syntax-tree/unist-util-map)
— Create a new tree with all nodes mapped by a given function
* [`unist-util-remove`](https://github.com/eush77/unist-util-remove)
* [`unist-util-flatmap`](https://gitlab.com/staltz/unist-util-flatmap)
— Create a new tree by mapping (to an array) with the provided function and
then flattening
* [`unist-util-remove`](https://github.com/syntax-tree/unist-util-remove)
— Remove nodes from a tree that pass a test
* [`unist-util-select`](https://github.com/eush77/unist-util-select)
* [`unist-util-select`](https://github.com/syntax-tree/unist-util-select)
— Select nodes with CSS-like selectors

@@ -82,4 +85,4 @@

This project has a [Code of Conduct][coc].
By interacting with this repository, organisation, or community you agree to
This project has a [code of conduct][coc].
By interacting with this repository, organization, or community you agree to
abide by its terms.

@@ -115,3 +118,3 @@

[chat-badge]: https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg
[chat-badge]: https://img.shields.io/badge/chat-spectrum-7b16ff.svg

@@ -118,0 +121,0 @@ [chat]: https://spectrum.chat/unified/syntax-tree

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