tailwind
Version:
tailwind is a base module for streaming and evented CQS applications.
28 lines (19 loc) • 412 B
JavaScript
const TailwindApp = require('./TailwindApp');
let tailwindApp;
const tailwind = {
createApp (options) {
tailwindApp = new TailwindApp(options);
return tailwindApp;
},
app () {
if (!tailwindApp) {
throw new Error('Application has not been created.');
}
return tailwindApp;
},
destroyApp () {
tailwindApp = undefined;
}
};
module.exports = tailwind;
;