https://github.com/mskelton/shexpand.lua
Expand a string into a table of strings using shell brace expansion.
https://github.com/mskelton/shexpand.lua
brace-expansion luarocks
Last synced: 10 months ago
JSON representation
Expand a string into a table of strings using shell brace expansion.
- Host: GitHub
- URL: https://github.com/mskelton/shexpand.lua
- Owner: mskelton
- Created: 2023-03-03T02:48:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-03T02:50:10.000Z (over 3 years ago)
- Last Synced: 2024-10-18T08:17:54.861Z (over 1 year ago)
- Topics: brace-expansion, luarocks
- Language: Lua
- Homepage:
- Size: 1.95 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shexpand.lua
Expand a string into a table of strings using shell brace expansion.
## Installation
```bash
luarocks install shexpand
```
## Usage
```lua
local shexpand = require('shexpand')
shexpand.expand('a.{js,ts}')
shexpand.expand('{spec,test}.{js,ts}')
shexpand.expand('hi.gz{,ip}')
```