This doesn't change the default behaviour of cycle_case, but allows a user to specify a new order for case-cycling, or new formats entirely. To use a built-in order, simply pass the string value for that format (one of { "snake_case", "pascal_case", "screaming_snake_case", "camel_case" }).
To provide a custom value, instead of passing a string, pass a table that conforms to:
{ pattern = string, apply = function, standardize = function }
This doesn't change the default behaviour of
cycle_case
, but allows a user to specify a new order for case-cycling, or new formats entirely. To use a built-in order, simply pass the string value for that format (one of{ "snake_case", "pascal_case", "screaming_snake_case", "camel_case" }
).To provide a custom value, instead of passing a string, pass a table that conforms to:
{ pattern = string, apply = function, standardize = function }
Closes #15