mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 14:03:33 +09:00
7 lines
215 B
TypeScript
7 lines
215 B
TypeScript
import snakeCase from "lodash.snakecase";
|
|
import capitalize from "lodash.capitalize";
|
|
|
|
export const humanizeString = (string: string): string => {
|
|
return snakeCase(string).split("_").map(capitalize).join(" ");
|
|
};
|