Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/Xuanwo/globiter

Turn glob range and set into Iterator
https://github.com/Xuanwo/globiter

glob rust

Last synced: about 2 months ago
JSON representation

Turn glob range and set into Iterator

Awesome Lists containing this project

README

        

# globiter   [![Build Status]][actions] [![Latest Version]][crates.io]

[Build Status]: https://img.shields.io/github/workflow/status/Xuanwo/globiter/CI/main
[actions]: https://github.com/Xuanwo/globiter/actions?query=branch%3Amain
[Latest Version]: https://img.shields.io/crates/v/globiter.svg
[crates.io]: https://crates.io/crates/globiter

`globiter` turns glob range and set into Iterator.

## Quick Start

```rust
let pattern = Pattern::parse("https://example.com/{a,b,c}/file/[001-003]")?;
for i in pattern.iter() {
println("{i}")
}
// Output:
// https://example.com/a/file/001
// https://example.com/a/file/002
// https://example.com/a/file/003
// https://example.com/b/file/001
// ...
// https://example.com/c/file/003
```

## Contributing

Check out the [CONTRIBUTING.md](./CONTRIBUTING.md) guide for more details on getting started with contributing to this project.

## Getting help

Submit [issues](https://github.com/Xuanwo/globiter/issues/new/choose) for bug report or asking questions in [discussion](https://github.com/Xuanwo/globiter/discussions/new?category=q-a).

#### License


Licensed under Apache License, Version 2.0.