Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/minibill/elm-glob
Check glob patterns against strings
https://github.com/minibill/elm-glob
Last synced: about 8 hours ago
JSON representation
Check glob patterns against strings
- Host: GitHub
- URL: https://github.com/minibill/elm-glob
- Owner: miniBill
- License: mit
- Created: 2024-02-18T13:02:36.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-21T01:42:41.000Z (9 months ago)
- Last Synced: 2024-02-21T03:11:23.232Z (9 months ago)
- Language: Elm
- Size: 107 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# `miniBill/elm-glob` [![Build Status](https://github.com/miniBill/elm-glob/workflows/CI/badge.svg)](https://github.com/miniBill/elm-glob/actions?query=branch%3Amain)
Matches file paths against a [glob](https://man7.org/linux/man-pages/man7/glob.7.html).
```elm
import Glob exposing (Glob)glob : Glob
glob =
Glob.fromString "src/*.css*"
|> Result.withDefault Glob.neverGlob.match glob "src/style.css"
--> TrueGlob.match glob "src/file.sv"
--> False
```