{"_id":"pull-traverse","_rev":"4576287","name":"pull-traverse","description":"[![travis](https://travis-ci.org/dominictarr/pull-traverse.png?branch=master)](https://travis-ci.org/dominictarr/pull-traverse)","dist-tags":{"latest":"1.0.3"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"time":{"modified":"2026-04-10T15:43:40.000Z","created":"2013-06-23T21:55:01.442Z","1.0.3":"2013-11-14T08:41:24.170Z","1.0.2":"2013-11-14T08:40:54.832Z","1.0.1":"2013-11-14T07:47:48.459Z","1.0.0":"2013-06-23T21:55:01.442Z"},"users":{},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"repository":{"type":"git","url":"git://github.com/dominictarr/pull-traverse.git"},"versions":{"1.0.3":{"name":"pull-traverse","description":"[![travis](https://travis-ci.org/dominictarr/pull-traverse.png?branch=master)](https://travis-ci.org/dominictarr/pull-traverse)","version":"1.0.3","homepage":"https://github.com/dominictarr/pull-traverse","repository":{"type":"git","url":"git://github.com/dominictarr/pull-traverse.git"},"dependencies":{},"devDependencies":{"pull-stream":"~2.20.0","tape":"~2.1.0"},"scripts":{"test":"set -e; for t in test/*.js; do node $t; done"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","readmeFilename":"README.md","bugs":{"url":"https://github.com/dominictarr/pull-traverse/issues"},"_id":"pull-traverse@1.0.3","dist":{"shasum":"74fb5d7be7fa6bd7a78e97933e199b7945866938","size":2787,"noattachment":false,"key":"/pull-traverse/-/pull-traverse-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/pull-traverse/download/pull-traverse-1.0.3.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"directories":{},"publish_time":1384418484170,"_hasShrinkwrap":false,"_cnpm_publish_time":1384418484170,"_cnpmcore_publish_time":"2021-12-16T19:10:21.411Z"},"1.0.2":{"name":"pull-traverse","description":"[![travis](https://travis-ci.org/dominictarr/pull-traverse.png?branch=master)](https://travis-ci.org/dominictarr/pull-traverse)","version":"1.0.2","homepage":"https://github.com/dominictarr/pull-traverse","repository":{"type":"git","url":"git://github.com/dominictarr/pull-traverse.git"},"dependencies":{},"devDependencies":{"pull-stream":"~2.20.0","tape":"~2.1.0"},"scripts":{"test":"set -e; for t in test/*.js; do node $t; done"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","readmeFilename":"README.md","bugs":{"url":"https://github.com/dominictarr/pull-traverse/issues"},"_id":"pull-traverse@1.0.2","dist":{"shasum":"e3aa9cd5fdce90f4e8d9fab4c2f7798f0a236e35","size":2786,"noattachment":false,"key":"/pull-traverse/-/pull-traverse-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/pull-traverse/download/pull-traverse-1.0.2.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"directories":{},"publish_time":1384418454832,"_hasShrinkwrap":false,"_cnpm_publish_time":1384418454832,"_cnpmcore_publish_time":"2021-12-16T19:10:21.704Z"},"1.0.1":{"name":"pull-traverse","description":"[![travis](https://travis-ci.org/dominictarr/pull-traverse.png?branch=master)](https://travis-ci.org/dominictarr/pull-traverse)","version":"1.0.1","homepage":"https://github.com/dominictarr/pull-traverse","repository":{"type":"git","url":"git://github.com/dominictarr/pull-traverse.git"},"dependencies":{},"devDependencies":{"pull-stream":"~2.20.0","tape":"~1.0.4"},"scripts":{"test":"set -e; for t in test/*.js; do node $t; done"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","readmeFilename":"README.md","bugs":{"url":"https://github.com/dominictarr/pull-traverse/issues"},"_id":"pull-traverse@1.0.1","dist":{"shasum":"6db5691cfc1052690c4809ebb340a3ca8c33f759","size":2758,"noattachment":false,"key":"/pull-traverse/-/pull-traverse-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pull-traverse/download/pull-traverse-1.0.1.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"directories":{},"publish_time":1384415268459,"_hasShrinkwrap":false,"_cnpm_publish_time":1384415268459,"_cnpmcore_publish_time":"2021-12-16T19:10:21.905Z"},"1.0.0":{"name":"pull-traverse","description":"[![travis](https://travis-ci.org/dominictarr/pull-traverse.png?branch=master)](https://travis-ci.org/dominictarr/pull-traverse)","version":"1.0.0","homepage":"https://github.com/dominictarr/pull-traverse","repository":{"type":"git","url":"git://github.com/dominictarr/pull-traverse.git"},"dependencies":{},"devDependencies":{"pull-stream":"~2.20.0","tape":"~1.0.4"},"scripts":{"test":"set -e; for t in test/*.js; do node $t; done"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","readmeFilename":"README.md","bugs":{"url":"https://github.com/dominictarr/pull-traverse/issues"},"_id":"pull-traverse@1.0.0","dist":{"shasum":"ee0ed846734ef5b75be5563efe2310e4943760a4","size":2556,"noattachment":false,"key":"/pull-traverse/-/pull-traverse-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pull-traverse/download/pull-traverse-1.0.0.tgz"},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"directories":{},"publish_time":1372024501442,"_hasShrinkwrap":false,"_cnpm_publish_time":1372024501442,"_cnpmcore_publish_time":"2021-12-16T19:10:22.105Z"}},"readme":"# pull-traverse\n\n[![travis](https://travis-ci.org/dominictarr/pull-traverse.png?branch=master)](https://travis-ci.org/dominictarr/pull-traverse)\n\n## depthFirst, widthFirst, leafFirst (start, createStream)\n\nTraverse a tree structure. `start` is a value that represents\na node. `createStream` is a function that returns\na pull-stream of the children of a node.\n`start` must be the same type output by `createStream`.\n\n``` js\nvar pull = require('pull-stream')\nvar pt   = require('pull-traverse')\n\npull(\n  pt.widthFirst(objects, function (object) {\n    if(object && 'object' === typeof object)\n      return pull.values(object)\n    return pull.empty()\n  }),\n  pull.log()\n)\n```\n\n## License\n\nMIT\n","_attachments":{},"readmeFilename":"README.md","homepage":"https://github.com/dominictarr/pull-traverse","bugs":{"url":"https://github.com/dominictarr/pull-traverse/issues"},"license":"MIT"}