You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Unist](https://github.com/wooorm/unist) node finder. Useful for working with [remark](https://github.com/wooorm/remark), [rehype](https://github.com/wooorm/rehype) and [retext](https://github.com/wooorm/retext).
3
+
[Unist](https://github.com/wooorm/unist) node finder utility. Useful for working with [remark](https://github.com/wooorm/remark), [rehype](https://github.com/wooorm/rehype) and [retext](https://github.com/wooorm/retext).
4
4
5
5
## Installation
6
6
7
7
```
8
-
npm install --save unist-find
8
+
npm install --save unist-util-find
9
9
```
10
10
11
11
## Usage
@@ -14,7 +14,7 @@ npm install --save unist-find
14
14
15
15
```js
16
16
var remark =require('remark')
17
-
var find =require('unist-find')
17
+
var find =require('unist-util-find')
18
18
19
19
remark()
20
20
.use(function () {
@@ -68,9 +68,7 @@ Result:
68
68
69
69
### API
70
70
71
-
```
72
-
find(node, condition)
73
-
```
71
+
#### `find(node, condition)`
74
72
75
73
Return the first node that matches `condition`, or `undefined` if no node matches.
0 commit comments