{"version":"1.0","type":"rich","title":"Some handy string functions written in TypeScript","description":"This example demonstrates a set of pure TypeScript string-manipulation functions that convert between naming conventions such as snake_case, kebab-case, camelCase, and PascalCase. It shows how regular expressions and string methods like `replace`, `match`, `map`, and `join` transform input text. The code defines exported functions `toSpaces`, `toSnakeCase`, `toKebabCase`, `toCamelCase`, and `toPascalCase`, each with documented example inputs and outputs. No external libraries are used; the logic relies solely on native JavaScript string APIs and TypeScript type annotations.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-d7b4b3700afdbb8f25f214607d19d555?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}