mskelton / shexpand.lua

Expand a string into a table of strings using shell brace expansion.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shexpand.lua

Expand a string into a table of strings using shell brace expansion.

Installation

luarocks install shexpand

Usage

local shexpand = require('shexpand')

shexpand.expand('a.{js,ts}')
shexpand.expand('{spec,test}.{js,ts}')
shexpand.expand('hi.gz{,ip}')

About

Expand a string into a table of strings using shell brace expansion.


Languages

Language:Lua 100.0%