/*\ title: $:/core/modules/utils/repository.js type: application/javascript module-type: utils Utilities for working with the TiddlyWiki repository file structure \*/ (function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; /* Get an object containing all the plugins as a hashmap by title of the JSON representation of the plugin Options: ignoreEnvironmentVariables: defaults to false */ exports.getAllPlugins = function(options) { var fs = require("fs"), path = require("path"), tiddlers = {}; // Collect up the library plugins var collectPlugins = function(folder) { var pluginFolders = $tw.utils.getSubdirectories(folder) || []; for(var p=0; p