lib/utils/helpers.js
function camelToUnderscore(str) {
            return s.split(/(?=[A-Z])/).map(function (p) {
                return p.charAt(0).toUpperCase() + p.slice(1);
            }).join('_');
        }
function camelToUnderscore(str) {
            return s.split(/(?=[A-Z])/).map(function (p) {
                return p.charAt(0).toUpperCase() + p.slice(1);
            }).join('_');
        }
function camelToUnderscore ( str ) { return s . split ( / (?=[A-Z]) / ) . map ( function ( p ) { return p . charAt ( 0 ) . toUpperCase ( ) + p . slice ( 1 ) ; } ) . join ( '_' ) ; }
Converts camel case string to underscore.
@param {string} str - the string to convert.
@returns {string}
Converts camel case string to underscore .