Skip to content

Instantly share code, notes, and snippets.

@rassie
Created August 12, 2022 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rassie/402363145b82d952f0f3701ee6bed188 to your computer and use it in GitHub Desktop.
Save rassie/402363145b82d952f0f3701ee6bed188 to your computer and use it in GitHub Desktop.
camelCase to kebab-case for `jsonnet`
function camelToKebabCase(x) = std.asciiLower(std.native('regexSubst')('([A-Z])', x, '-$1'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment