_build.js
/**
 * Generates a major section or "category" such as Mobile Apps
 * @param {String} header Title for section
 * @param {Object} data Object of data to populate README.md with
 */
Generates a major section or "category" such as Mobile Apps
@param {String} header Title for section
@param {Object} data Object of data to populate README.md with
Generates a major section or " category " such as Mobile Apps @param { String } header Title for section @param { Object } data Object of data to populate README . md with
function generateCategorySection(header, data) {
    if (!data) return '';
    let categorySection = `## ${header}${os.EOL}${BACK_TO_TOP}${os.EOL}${os.EOL}`;
    Object.keys(data).forEach((key) => categorySection = categorySection.concat(`${generateServiceSection(data[key])}${os.EOL}${os.EOL}`));
    return categorySection;
}
function generateCategorySection ( header , data ) { if ( ! data ) return '' ; let categorySection = ` ${ header } ${ os . EOL } ${ BACK_TO_TOP } ${ os . EOL } ${ os . EOL } ` ; Object . keys ( data ) . forEach ( ( key ) => categorySection = categorySection . concat ( ` ${ generateServiceSection ( data [ key ] ) } ${ os . EOL } ${ os . EOL } ` ) ) ; return categorySection ; }
Generates a major section or "category" such as Mobile Apps
 @param {String} header Title for section
 @param {Object} data Object of data to populate README.md with
Generates a major section or " category " such as Mobile Apps @param { String } header Title for section @param { Object } data Object of data to populate README . md with
// Set the header to HTML <h5> // Generate service sections for this category