unist-util-is
Advanced tools
Comparing version 4.0.1 to 4.0.2
{ | ||
"name": "unist-util-is", | ||
"version": "4.0.1", | ||
"description": "Utility to check if a node passes a test", | ||
"version": "4.0.2", | ||
"description": "unist utility to check if a node passes a test", | ||
"license": "MIT", | ||
"keywords": [ | ||
"unist", | ||
"unist-util", | ||
"util", | ||
"utility", | ||
"tree", | ||
"node", | ||
"is", | ||
"equal", | ||
"check", | ||
"test", | ||
"type", | ||
"util", | ||
"utility" | ||
"type" | ||
], | ||
@@ -36,6 +39,6 @@ "repository": "syntax-tree/unist-util-is", | ||
"devDependencies": { | ||
"@types/mdast": "^3.0.3", | ||
"@types/mdast": "^3.0.0", | ||
"browserify": "^16.0.0", | ||
"dtslint": "^2.0.0", | ||
"nyc": "^14.0.0", | ||
"dtslint": "^3.0.0", | ||
"nyc": "^15.0.0", | ||
"prettier": "^1.0.0", | ||
@@ -47,3 +50,3 @@ "remark-cli": "^7.0.0", | ||
"unified": "^8.0.0", | ||
"xo": "^0.25.0" | ||
"xo": "^0.26.0" | ||
}, | ||
@@ -50,0 +53,0 @@ "scripts": { |
@@ -21,3 +21,3 @@ # unist-util-is | ||
## Usage | ||
## Use | ||
@@ -94,2 +94,5 @@ ```js | ||
The created function is slightly faster because it expects valid input only. | ||
Therefore, passing invalid input, yields unexpected results. | ||
Can also be accessed with `require('unist-util-is/convert')`. | ||
@@ -120,3 +123,3 @@ | ||
```js | ||
[({type: 'leaf', value: '2'}, {type: 'leaf', value: '5'})] | ||
[{type: 'leaf', value: '2'}, {type: 'leaf', value: '5'}] | ||
``` | ||
@@ -149,4 +152,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. | ||
@@ -182,3 +185,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 | ||
@@ -185,0 +188,0 @@ [chat]: https://spectrum.chat/unified/syntax-tree |
13738
206