Skip to main content
Deno 2 is finally here 🎉️
Learn more

Deno Tree

Deno’s library to traverse filesystem tree.

Usage

Async

import traverse from 'https://ksxgithub.github.io/deno-tree/async.ts'

for await (const item of traverse('.', () => true)) {
  console.log(
    item.isDirectory ? 'dir' : 'file',
    item.container + '/' + item.info.name
  )
}

TODO

  • Test
  • Sync version

License

MIT © Hoàng Văn Khải