humanize (source code)
- Curried: false
- Failsafe status: alternative available
The humanize
function converts common developer-friendly string formats such
as camelCase, snake_case, dash-case, etc., into human-readable strings.
string
: The string to be converted.
humanize("helloWorld"); // "Hello world"
humanize("hello-world"); // "Hello world"
humanize("__hello_world"); // "Hello world"
humanize("HelloUSA"); // "Hello usa"