An open API service indexing awesome lists of open source software.

https://github.com/ksxgithub/deno-tree

Deno's library to traverse filesystem tree.
https://github.com/ksxgithub/deno-tree

deno filesystem javascript library traverse tree typescript

Last synced: 9 months ago
JSON representation

Deno's library to traverse filesystem tree.

Awesome Lists containing this project

README

          

# Deno Tree

[![Test](https://github.com/KSXGitHub/deno-tree/workflows/Test/badge.svg)](https://github.com/KSXGitHub/deno-tree/actions?query=workflow%3ATest)

[Deno](https://deno.land)'s library to traverse filesystem tree.

## Usage

### Async

```typescript
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](https://git.io/Jv5km) © [Hoàng Văn Khải](https://github.com/KSXGitHub)