Files
webstudio/apps/builder/app/shared/string-utils.ts
T
Bogdan Chadkin bba102d857 Replace lodash string utilities with change-case (#1318)
Change case is a cool collection of string utilities. See
https://github.com/blakeembrey/change-case

Here replaced lodash snakecase and capitlize used for humanizeString
with single title-case from that collection.

Also dropped other unused lodash packages.
2023-03-29 15:10:08 +07:00

6 lines
162 B
TypeScript

import { noCase } from "no-case";
import { titleCase } from "title-case";
export const humanizeString = (string: string): string =>
titleCase(noCase(string));