22
33## slugify
44
5- Curried: false
6- Failsafe status: alternative available
5+ Curried: false Failsafe status: alternative available
76
87Converts a given string to slug.
98
109<details >
1110<summary >(click for example)</summary >
1211
1312### Arguments:
13+
1414- ` string ` : The string to be converted.
1515
1616### Usage:
@@ -27,8 +27,7 @@ slugify("my!@#$%^*(quiz"); // "myquiz"
2727
2828## humanize
2929
30- Curried: false
31- Failsafe status: alternative available
30+ Curried: false Failsafe status: alternative available
3231
3332Converts common developer friendly string formats (camelCase, snake_case,
3433dash-case etc) to human readable string.
@@ -37,6 +36,7 @@ dash-case etc) to human readable string.
3736<summary >(click for example)</summary >
3837
3938### Arguments:
39+
4040- ` string ` : The string to be converted.
4141
4242### Usage:
@@ -52,15 +52,15 @@ humanize("HelloUSA"); // "Hello usa"
5252
5353## snakeToCamelCase
5454
55- Curried: false
56- Failsafe status: alternative available
55+ Curried: false Failsafe status: alternative available
5756
5857Converts snake_case string to camelCase.
5958
6059<details >
6160<summary >(click for example)</summary >
6261
6362### Arguments:
63+
6464- ` string ` : The string to be converted.
6565
6666### Usage:
@@ -73,15 +73,15 @@ snakeToCamelCase("first_name"); // "firstName"
7373
7474## camelToSnakeCase
7575
76- Curried: false
77- Failsafe status: alternative available
76+ Curried: false Failsafe status: alternative available
7877
7978Converts camelCase string to snake_case.
8079
8180<details >
8281<summary >(click for example)</summary >
8382
8483### Arguments:
84+
8585- ` string ` : The string to be converted.
8686
8787### Usage:
@@ -94,15 +94,15 @@ camelToSnakeCase("firstName"); // "first_name"
9494
9595## capitalize
9696
97- Curried: false
98- Failsafe status: alternative available
97+ Curried: false Failsafe status: alternative available
9998
10099Convert the first character of string to upper case.
101100
102101<details >
103102<summary >(click for example)</summary >
104103
105104### Arguments:
105+
106106- ` string ` : The string to be converted.
107107
108108### Usage:
@@ -115,17 +115,42 @@ capitalize("oLIVER"); // "OLIVER"
115115
116116</details >
117117
118+ ## hyphenate
119+
120+ Curried: false Failsafe status: alternative available
121+
122+ The hyphenate function converts strings that contain underscores, spaces, and
123+ camelCase strings into hyphenated strings
124+
125+ <details >
126+ <summary >(click for example)</summary >
127+
128+ ### Arguments:
129+
130+ - ` string ` : The string to be hyphenated.
131+ - ` fallbackString ` : value to be returned if string is empty
132+
133+ ### Usage:
134+
135+ ``` js
136+ hyphenate (" Hello World" ); // "hello-world"
137+ hyphenate (" hello_world" ); // "hello-world"
138+ hyphenate (" helloWorld" ); // "hello-world"
139+ ```
140+
141+ </details >
142+
118143## truncate
119144
120- Curried: false
121- Failsafe status: alternative available
145+ Curried: false Failsafe status: alternative available
122146
123147Truncate the string with ` ... ` if it is longer than specified string length.
124148
125149<details >
126150<summary >(click for example)</summary >
127151
128152### Arguments:
153+
129154- ` string ` : The string to be truncated.
130155- ` length ` : The maximum allowed length of the string.
131156
0 commit comments