export function camel2line ( key ) { return key . replace ( /([A-Z])/g , "_$1" ) . toLowerCase ( ) ; } export function line2camel ( key ) { return key . replace ( /_(\w)/g , function ( _ , letter ) { return letter . toUpperCase ( ) ; } ) ; }