UNPKG

@stdlib/string

Version:

String manipulation functions.

24 lines (18 loc) 374 B
{{alias}}( str ) Converts a string to HTTP header case. Parameters ---------- str: string Input string. Returns ------- out: string HTTP header-cased string. Examples -------- > var out = {{alias}}( 'Hello World!' ) 'Hello-World' > out = {{alias}}( 'beep boop' ) 'Beep-Boop' See Also --------