function parse_PRODUCT_DEFINITION(Array_of_PRODUCT_DEFINITIONs) {
    let bar = new cliProgress.SingleBar({
        format: 'Parsing products |' + colors.cyan('{bar}') + '| {percentage}% || {value}/{total} Chunks',
        barCompleteChar: '\u2588',
        barIncompleteChar: '\u2591',
        hideCursor: true
    });
    bar.start(Array_of_PRODUCT_DEFINITIONs.length, 0);
    let products = [];

    Array_of_PRODUCT_DEFINITIONs.forEach(element => {
        bar.increment();
        let endOfKey = element.indexOf("=");
        let newKey = element.slice(1, endOfKey);
        let newName;

        let entries = element.split(",");
        entries.forEach(element => {

            if (element.includes("'")) {
                newName = element.replace(/['\)]/g, "")
            }
        });
        let productObject = {
            key: newKey,
            name: newName
        }
        products.push(productObject);

    });
    bar.stop();
    return products;
}
/**
 * Parses the lines of the product definition and extracts key and name
 *
 * @param {Array<string>} Array_of_PRODUCT_DEFINITIONs
 * @returns
 */
Parses the lines of the product definition and extracts key and name
@param {Array} Array_of_PRODUCT_DEFINITIONs
@returns
Parses the lines of the product definition and extracts key and name @param { Array } Array_of_PRODUCT_DEFINITIONs @returns
function parse_PRODUCT_DEFINITION(Array_of_PRODUCT_DEFINITIONs) {
    let bar = new cliProgress.SingleBar({
        format: 'Parsing products |' + colors.cyan('{bar}') + '| {percentage}% || {value}/{total} Chunks',
        barCompleteChar: '\u2588',
        barIncompleteChar: '\u2591',
        hideCursor: true
    });
    bar.start(Array_of_PRODUCT_DEFINITIONs.length, 0);
    let products = [];
    Array_of_PRODUCT_DEFINITIONs.forEach(element => {
        bar.increment();
        let endOfKey = element.indexOf("=");
        let newKey = element.slice(1, endOfKey);
        let newName;
        let entries = element.split(",");
        entries.forEach(element => {
            if (element.includes("'")) {
                newName = element.replace(/['\)]/g, "")
            }
        });
        let productObject = {
            key: newKey,
            name: newName
        }
        products.push(productObject);
    });
    bar.stop();
    return products;
}
function parse_PRODUCT_DEFINITION ( Array_of_PRODUCT_DEFINITIONs ) { let bar = new cliProgress . SingleBar ( { format : 'Parsing products |' + colors . cyan ( '{bar}' ) + '| {percentage}% || {value}/{total} Chunks' , barCompleteChar : '\u2588' , barIncompleteChar : '\u2591' , hideCursor : true } ) ; bar . start ( Array_of_PRODUCT_DEFINITIONs . length , 0 ) ; let products = [ ] ; Array_of_PRODUCT_DEFINITIONs . forEach ( element => { bar . increment ( ) ; let endOfKey = element . indexOf ( "=" ) ; let newKey = element . slice ( 1 , endOfKey ) ; let newName ; let entries = element . split ( "," ) ; entries . forEach ( element => { if ( element . includes ( "'" ) ) { newName = element . replace ( / ['\)] / g , "" ) } } ) ; let productObject = { key : newKey , name : newName } products . push ( productObject ) ; } ) ; bar . stop ( ) ; return products ; }
Parses the lines of the product definition and extracts key and name
 @param {Array<string>} Array_of_PRODUCT_DEFINITIONs
 @returns
Parses the lines of the product definition and extracts key and name @param { Array<string > } Array_of_PRODUCT_DEFINITIONs @returns