Home / Function/ hyphenate() — vue Function Reference

hyphenate() — vue Function Reference

Architecture documentation for the hyphenate() function in util.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  e667d00b_a47f_c88a_e931_82b5917dddc2["hyphenate()"]
  e9dcbd63_d9db_8c20_c04c_3eafe4d27b15["genStyle()"]
  e9dcbd63_d9db_8c20_c04c_3eafe4d27b15 -->|calls| e667d00b_a47f_c88a_e931_82b5917dddc2
  a8b5582c_75a3_d739_c9b5_27e2ceb67bc3["processAttrs()"]
  a8b5582c_75a3_d739_c9b5_27e2ceb67bc3 -->|calls| e667d00b_a47f_c88a_e931_82b5917dddc2
  2a912629_0971_8a64_979f_6ceb43905896["checkKeyCodes()"]
  2a912629_0971_8a64_979f_6ceb43905896 -->|calls| e667d00b_a47f_c88a_e931_82b5917dddc2
  50f52114_04b8_bc98_a41e_bc26a88ea2ab["validateProp()"]
  50f52114_04b8_bc98_a41e_bc26a88ea2ab -->|calls| e667d00b_a47f_c88a_e931_82b5917dddc2
  311fb23f_f8ca_2e0c_855b_13518ffc8566["setProp()"]
  311fb23f_f8ca_2e0c_855b_13518ffc8566 -->|calls| e667d00b_a47f_c88a_e931_82b5917dddc2
  873ecd88_d60c_980f_e4d8_c465d6aa940c["cached()"]
  e667d00b_a47f_c88a_e931_82b5917dddc2 -->|calls| 873ecd88_d60c_980f_e4d8_c465d6aa940c
  style e667d00b_a47f_c88a_e931_82b5917dddc2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/shared/util.ts lines 196–198

export const hyphenate = cached((str: string): string => {
  return str.replace(hyphenateRE, '-$1').toLowerCase()
})

Domain

Subdomains

Calls

Frequently Asked Questions

What does hyphenate() do?
hyphenate() is a function in the vue codebase.
What does hyphenate() call?
hyphenate() calls 1 function(s): cached.
What calls hyphenate()?
hyphenate() is called by 5 function(s): checkKeyCodes, genStyle, processAttrs, setProp, validateProp.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free