utils/naming library
Functions
-
isValidFeatureName(
String name) → bool -
Returns whether
nameis a valid snake_case feature identifier (starts with a letter and contains only lowercase letters, digits, and underscores). -
normalizeFeatureName(
String input) → String? -
Normalises an arbitrary
inputinto a valid snake_case feature name. -
toSnakeCase(
String input) → String -
Converts
inputtosnake_case, splitting on camelCase boundaries and any run of non-alphanumeric characters.