palacera/Array Template

Apply a uniform template to each array element for consistent string formatting.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
arrayArray containing the elements to which the template will be applied.yes""
templateString template that defines the format to be applied to each element in the array.yes""
word-delimiterDelimiter to be used between words. Note: This can only separate words by existing symbols or changes in letter case.nonone
caseString case of array element in output. Options: `upper`, `lower`, `camel`, `pascal`.nonone
validation-patternValidation pattern for array elements. Defaults to `^[a-zA-Z0-9 _./-]+$`. Warning: Update only when input is trusted.no^[a-zA-Z0-9 _./-]+$
namedescription
json-arrayJSON array with each element formatted to the specified template.