import mainTemplates from './mainTemplates.mjs' import constants from './folders.js' import cv from './controlled_vocabulary.js' /** * configuration générale à importer dans les utilitaires */ class config_rangement { log_level = 'debug' // 'debug' | 'warn' |'info' version = '1.0.0' iso_date_format = 'yyyy-MM-DDTHH.mm.ss' // target format for dates in file names tagSeparator = ' ' tagSectionSeparator = '--' keepFreeText = true keepTags = true replaceUnderscoreWithSpaces = true renameFolders = false enableTestsLocally = false reportStatistics = true controlled_vocabulary = cv constants = constants base_archive_folder = constants.base_archive_folder templates = mainTemplates; statistics= {}; keepOriginalNameInRename=true; log_actions=true; /** * override config if we want * @param overridingConfig */ constructor (overridingConfig) { let keys = Object.keys(overridingConfig) let self = this; keys.forEach(elem=>{ if(self[key]){ self[key] = elem } }) } } const rangement_instance = new config_rangement({}); export default rangement_instance