palacera/Array Template
Apply a uniform template to each array element for consistent string formatting.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| array | Array containing the elements to which the template will be applied. | yes | "" |
| template | String template that defines the format to be applied to each element in the array. | yes | "" |
| word-delimiter | Delimiter to be used between words. Note: This can only separate words by existing symbols or changes in letter case. | no | none |
| case | String case of array element in output. Options: `upper`, `lower`, `camel`, `pascal`. | no | none |
| validation-pattern | Validation pattern for array elements. Defaults to `^[a-zA-Z0-9 _./-]+$`. Warning: Update only when input is trusted. | no | ^[a-zA-Z0-9 _./-]+$ |
Outputs
| name | description |
|---|---|
| json-array | JSON array with each element formatted to the specified template. |