/*\ title: $:/core/modules/utils/edition-info.js type: application/javascript module-type: utils-node Information about the available editions \*/ (function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; var fs = require("fs"), path = require("path"); var editionInfo; exports.getEditionInfo = function() { if(!editionInfo) { // Enumerate the edition paths var editionPaths = $tw.getLibraryItemSearchPaths($tw.config.editionsPath,$tw.config.editionsEnvVar); editionInfo = {}; for(var editionIndex=0; editionIndex