Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unist-util-find-all-after

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unist-util-find-all-after - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

22

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc