# pull-traverse

> [![travis](https://travis-ci.org/dominictarr/pull-traverse.png?branch=master)](https://travis-ci.org/dominictarr/pull-traverse)

Latest version **1.0.3** (published 2013-11-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install pull-traverse
pnpm add pull-traverse
yarn add pull-traverse
bun add pull-traverse
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2013-11-14 |
| First published | 2013-06-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dominic Tarr |
| Maintainers | dominictarr |

## Links

- npm: https://www.npmjs.com/package/pull-traverse
- Repository: https://github.com/dominictarr/pull-traverse
- Issues: https://github.com/dominictarr/pull-traverse/issues
- npm.io page: https://npm.io/package/pull-traverse

## Recent versions

- 1.0.3 (latest) — 2013-11-14
- 1.0.2 — 2013-11-14
- 1.0.1 — 2013-11-14
- 1.0.0 — 2013-06-23

## README

# pull-traverse

[![travis](https://travis-ci.org/dominictarr/pull-traverse.png?branch=master)](https://travis-ci.org/dominictarr/pull-traverse)

## depthFirst, widthFirst, leafFirst (start, createStream)

Traverse a tree structure. `start` is a value that represents
a node. `createStream` is a function that returns
a pull-stream of the children of a node.
`start` must be the same type output by `createStream`.

``` js
var pull = require('pull-stream')
var pt   = require('pull-traverse')

pull(
  pt.widthFirst(objects, function (object) {
    if(object && 'object' === typeof object)
      return pull.values(object)
    return pull.empty()
  }),
  pull.log()
)
```

## License

MIT

---
_Source: https://npm.io/package/pull-traverse · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
