mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-06 12:04:00 +09:00
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.
6 lines
162 B
TypeScript
6 lines
162 B
TypeScript
import { noCase } from "no-case";
|
|
import { titleCase } from "title-case";
|
|
|
|
export const humanizeString = (string: string): string =>
|
|
titleCase(noCase(string));
|