tromp

Asynchronous filesystem directory walk with events and accept/reject filtering. For use with minimatch or other filtering tools.

Usage no npm install needed!

<script type="module">
  import tromp from 'https://cdn.skypack.dev/tromp';
</script>

README

Tromp is an asynchronous filesystem directory walking algorithm with events and accept/reject filtering. For use with minimatch or other filtering tools.

Use


var tromp = require('tromp')

tromp('.')
  .reject(/node_modules/)
  .on('listed', function (node) {
    console.log({
      base: node.base(),
      files: node.files(),
      dirs: node.dirs()})
  })