/Autotagical/Renaming/Name/Component/Format/as-spinal-case.dhall
Copy path to clipboardRenaming.Name.Component.Format.as-spinal-case
Component
Given a list of name components, format them as "spinal case", which consists
of all lowercase letters with words separated by hyphens, e.g.
as-spinal-case
.
Individual components are considered word boundaries, as well as whitespace, case-sensitivity, and non-letter characters. Leading and trailing whitespace is trimmed.
Important: If Renaming.Name.With.separator is used, the separator will not be intercalated between the components in the list passed to this function. (Separators will still be inserted where applicable in the components themselves, as well as around this entire component.)
Example
["This_isSpinal", "tap"]
will be converted to "this-is-spinal-tap"
Usage
let Autotagical = https://siriusstarr.github.io/autotagical/dhall/package.dhall
in Autotagical.Renaming.Name.Component.Format.as-spinal-case
[Autotagical.Renaming.Name.Component.text "toSpinal-case"]
Source
let Case =
../../../../Internal/NameTemplate/Case sha256:9e2d5a3c338b63a4e067de578f9e65952648ed6ffcf4ee0caaa211cdb2b3a3c5
? ../../../../Internal/NameTemplate/Case
let Component =
../../../../Internal/NameTemplate/File/Component sha256:b637988aae2ec7c1ee2b6fc7059008b03da8b57b1901dda79951c2045662bdfd
? ../../../../Internal/NameTemplate/File/Component
let format =
../../../../Internal/NameTemplate/File/format sha256:9412d0b754af1c6dbb1a8e6be30bb969abd3342bd31144581cb7d308677505df
? ../../../../Internal/NameTemplate/File/format
in format Case.AsSpinalCase : List Component → Component