tree-query

like jQuery, but on directory trees.

npm install tree-query
8 downloads in the last week
16 downloads in the last month

tree-query

like jQuery, but on directory trees.

Example

Find all the modules node could require from current dir, and print their name and version.

var $ = require('tree-query')

$('.../node_module/*/package.json')
  .read(JSON.parse)
  .unique('name')
  .map(function (e) {
    return {name:e.name, version:e.version}
  })
  .drain(console.log)

and many other extremely terse expressions!

see also

mostly this just wraps some pull-stream modules in a chainable api.

coming soon

fs.watch events...

License

MIT

npm loves you