DEV Community

Aleksei Aleinikov
Aleksei Aleinikov

Posted on

πŸͺ From snake_case to camelCase β€” Automatically, in 2025

Stop renaming keys by hand. This drop-in TypeScript utility transforms every key β€” deeply, recursively, and safely β€” from snake_case to camelCase:
βœ”οΈ Optional fields stay optional
βœ”οΈ Works with arrays, tuples, and nested objects
βœ”οΈ Fully evaluated at compile-time
βœ”οΈ No runtime cost, no guesswork

Say goodbye to manual mapping and mismatched interfaces.
πŸ“Ž Full guide β†’ https://javascript.plainenglish.io/clean-keys-in-2025-one-generic-to-convert-snake-case-to-camelcase-90139f9eea84

Top comments (0)