0.0.1 • Published 4 years ago
convert-variable-style v0.0.1
quick start
import convert from 'convert-variable-style'
const s = 'HelloWorldMM_L'
convert(s, 'toDash') // hello-world-m-m-l
convert(s, 'toDash', true) // hello-world-mm-l
convert(s, 'toUnderline') // hello_world_m_m_l
convert(s, 'toUnderline', true) // hello_world_mm_l
convert(s, 'toCamel') // Hello_worldMML
0.0.1
4 years ago