scripts/config/config.js
/**
     * @returns {Object} returns modified config
     */
@returns {Object} returns modified config
@returns { Object } returns modified config
parse() {
        if(!this.location || this.location == null) throw new Error('No config file path provided');
        const config = Yml.parse(MakeConfig(this.location, generateConfig()));
        if(config.version != Version) throw new Error('Config version isn\'t compatible. Version: ' + config.version + '; Supported: ' + Version);
        this.config = config;
        return this
    }
parse ( ) { if ( ! this . location || this . location == null ) throw new Error ( 'No config file path provided' ) ; const config = Yml . parse ( MakeConfig ( this . location , generateConfig ( ) ) ) ; if ( config . version != Version ) throw new Error ( 'Config version isn\'t compatible. Version: ' + config . version + '; Supported: ' + Version ) ; this . config = config ; return this }
@returns {Object} returns modified config
@returns { Object } returns modified config