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.
- Host: GitHub
- URL: https://github.com/ksxgithub/deno-tree
- Owner: KSXGitHub
- License: mit
- Created: 2020-03-31T01:30:50.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-26T14:28:04.000Z (over 2 years ago)
- Last Synced: 2025-02-26T20:11:48.953Z (over 1 year ago)
- Topics: deno, filesystem, javascript, library, traverse, tree, typescript
- Language: TypeScript
- Homepage: https://deno.land/x/tree/
- Size: 111 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Deno Tree
[](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)