UNPKG

silentjs

Version:
20 lines (15 loc) 399 B
// VENDOR LIBS var path = require('path'); var lodash = require('lodash'); // LIBS CORE var filesystem = require('lib-core/filesystem/filesystem'); var AppStore = function () { this.apps = {}; }; AppStore.prototype.addApp = function (appId, app) { this.apps[appId] = app; }; AppStore.prototype.getApp = function (appId) { return this.apps[appId]; }; module.exports = new AppStore();