Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Elixir
  3. ex_brace_expansion

ex_brace_expansion

MITElixir

Brace expansion pattern matching for Elixir, ported from bash/sh and JavaScript implementations.

GitHubGitHub
5 stars6 forks0 contributors

Overview

ExBraceExpansion brings bash-style brace expansion functionality to the Elixir ecosystem. It allows developers to generate lists of strings from compact pattern expressions, similar to how shell expansion works in Unix-like environments. This library is useful for file path generation, configuration management, and any scenario requiring systematic string variations.

Key Features

  • Pattern Expansion — Converts brace patterns like {a,b,c} into arrays of strings
  • Numeric Ranges — Supports numeric sequences with {start..end} and {start..end..step} syntax
  • Character Ranges — Handles alphabetical ranges like {a..e} for character sequences
  • Nested Braces — Processes complex nested patterns such as {{A..C},{a..c}}
  • Zero-padded Numbers — Correctly expands zero-padded numeric ranges like {00..10..5}
  • Empty Element Handling — Manages empty elements in patterns like -v{,,}

Philosophy

The project follows a pragmatic approach by porting an established JavaScript implementation to Elixir, ensuring reliability through proven algorithms while integrating naturally with Elixir's functional programming patterns.

Quick Stats

Stars5
Forks6
Contributors0
Open Issues0
Last commit5 years ago
CreatedSince 2015

Tags

#elixir#shell-scripting#bash-compatibility#pattern-matching#text-processing#utility-library#string-manipulation

Built With

E
Elixir

Included in

Elixir13.1k
Auto-fetched 2 days ago

Related Projects

moneymoney

Elixir library for working with Money safer, easier, and fun... Is an interpretation of the Fowler's Money pattern in fun.prog.

Stars847
Forks144
Last commit14 days ago
decimaldecimal

Arbitrary precision decimal arithmetic

Stars478
Forks108
Last commit1 month ago
inflexinflex

An Inflector library for Elixir

Stars384
Forks81
Last commit2 years ago
uuiduuid

UUID generator and utilities for Elixir

Stars367
Forks83
Last commit1 year ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub