Skip to content

Commit 42bfcad

Browse files
committed
Rename package to reflect utility pattern
1 parent edb5ba1 commit 42bfcad

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# unist-find [![Travis](https://img.shields.io/travis/blahah/unist-find.svg)](https://travis-ci.org/blahah/unist-find)
1+
# unist-find [![Travis](https://img.shields.io/travis/blahah/unist-util-find.svg)](https://travis-ci.org/blahah/unist-util-find)
22

3-
[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).
44

55
## Installation
66

77
```
8-
npm install --save unist-find
8+
npm install --save unist-util-find
99
```
1010

1111
## Usage
@@ -14,7 +14,7 @@ npm install --save unist-find
1414

1515
```js
1616
var remark = require('remark')
17-
var find = require('unist-find')
17+
var find = require('unist-util-find')
1818

1919
remark()
2020
.use(function () {
@@ -68,9 +68,7 @@ Result:
6868

6969
### API
7070

71-
```
72-
find(node, condition)
73-
```
71+
#### `find(node, condition)`
7472

7573
Return the first node that matches `condition`, or `undefined` if no node matches.
7674

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "unist-find",
2+
"name": "unist-util-find",
33
"version": "1.0.1",
4-
"description": "Unist node finder. Useful for working with remark, rehype and retext.",
5-
"repository": "https://github.com/blahah/unist-find",
4+
"description": "Unist node finder utility. Useful for working with remark, rehype and retext.",
5+
"repository": "https://github.com/blahah/unist-util-find",
66
"main": "index.js",
77
"scripts": {
88
"test": "standard && node test.js"

0 commit comments

Comments
 (0)