returns { string } export const getDateTime = ( ) : string => new Date ( ) . toLocaleTimeString ( [ ] , { hour : 'numeric' , minute : 'numeric' , second : 'numeric' , timeZone : 'Europe/Paris' , hour12 : false , } ) ; returns { string } export const getClassMethodCaller = ( ) : string => { const { stack } = new Error ( ) ; const methodName = stack . split ( 'at ' ) [ 3 ] . split ( ' ' ) [ 0 ] ; return methodName ; } ; param { string } str returns { string } export const slugLibName = ( name ) : string => { const SEPARATOR = '-' ; return name . split ( /(?=[A-Z])/ ) . map ( ( word ) => word . toLowerCase ( ) ) . slice ( 0 , - 1 ) . join ( SEPARATOR ) ; } ;