A utility function that unslugify a string

unSlugifyString('Hello-world') // 'Hello world'
unSlugifyString('Hello_world', '_') // 'Hello world'
  • Parameters

    • string: string

      The string to unslugify

    • delimiter: string = '-'

      The delimiter to use for the slug

    Returns string

    The unslugified string