unist-util-find-all-after
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "unist-util-find-all-after", | ||
"version": "3.0.0", | ||
"description": "Utility to find nodes after another node", | ||
"version": "3.0.1", | ||
"description": "unist utility to find nodes after another node", | ||
"license": "MIT", | ||
"keywords": [ | ||
"unist", | ||
"unist-util", | ||
"util", | ||
"utility", | ||
"tree", | ||
"node", | ||
"find", | ||
"after", | ||
"util", | ||
"utility" | ||
"after" | ||
], | ||
@@ -34,6 +36,6 @@ "repository": "syntax-tree/unist-util-find-all-after", | ||
"devDependencies": { | ||
"@types/tape": "^4.2.33", | ||
"@types/tape": "^4.0.0", | ||
"browserify": "^16.0.0", | ||
"dtslint": "^2.0.2", | ||
"nyc": "^14.0.0", | ||
"dtslint": "^3.0.0", | ||
"nyc": "^15.0.0", | ||
"prettier": "^1.0.0", | ||
@@ -45,4 +47,4 @@ "remark": "^11.0.0", | ||
"tinyify": "^2.0.0", | ||
"typescript": "^3.7.2", | ||
"xo": "^0.25.0" | ||
"typescript": "^3.3.0", | ||
"xo": "^0.26.0" | ||
}, | ||
@@ -49,0 +51,0 @@ "scripts": { |
@@ -13,11 +13,11 @@ # unist-util-find-all-after | ||
## Installation | ||
## Install | ||
[npm][]: | ||
```bash | ||
```sh | ||
npm install unist-util-find-all-after | ||
``` | ||
## Usage | ||
## Use | ||
@@ -45,5 +45,5 @@ ```js | ||
[ | ||
{ type: 'leaf', value: 'leaf 4' }, | ||
{ type: 'leaf', value: 'leaf 6' }, | ||
{ type: 'leaf', value: 'leaf 7' } | ||
{type: 'leaf', value: 'leaf 4'}, | ||
{type: 'leaf', value: 'leaf 6'}, | ||
{type: 'leaf', value: 'leaf 7'} | ||
] | ||
@@ -56,4 +56,4 @@ ``` | ||
Find all children after `index` (or `node`) in `parent`, that passes `test` | ||
(when given). | ||
Find all children after `index` (or `node`) in `parent` that pass `test` (when | ||
given). | ||
@@ -74,2 +74,13 @@ ###### Parameters | ||
* [`unist-util-visit`](https://github.com/syntax-tree/unist-util-visit) | ||
— Recursively walk over nodes | ||
* [`unist-util-visit-parents`](https://github.com/syntax-tree/unist-util-visit-parents) | ||
— Like `visit`, but with a stack of parents | ||
* [`unist-util-filter`](https://github.com/eush77/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-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-find-after`](https://github.com/syntax-tree/unist-util-find-after) | ||
@@ -79,2 +90,4 @@ — Find a node after another node | ||
— Find a node before another node | ||
* [`unist-util-find-all-after`](https://github.com/syntax-tree/unist-util-find-all-after) | ||
— Find all nodes after another node | ||
* [`unist-util-find-all-before`](https://github.com/syntax-tree/unist-util-find-all-before) | ||
@@ -84,4 +97,6 @@ — Find all nodes before another node | ||
— Find all nodes between two nodes | ||
* [`unist-util-find`](https://github.com/blahah/unist-util-find) | ||
— Find nodes matching a predicate | ||
* [`unist-util-remove`](https://github.com/eush77/unist-util-remove) | ||
— Remove nodes from a tree that pass a test | ||
* [`unist-util-select`](https://github.com/eush77/unist-util-select) | ||
— Select nodes with CSS-like selectors | ||
@@ -94,4 +109,4 @@ ## Contribute | ||
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. | ||
@@ -98,0 +113,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9849
162