@code_district/doorman
Version:
Doorman: A comprehensive React package for seamless authentication and authorization management. Easily integrate secure user authentication and access control in your applications. Streamline user verification, role-based permissions, and secure data han
22 lines (17 loc) • 343 B
JavaScript
const { DriverApp } = require("./driverApp");
const Singleton = (function () {
var instance;
function createInstance() {
var classObj = new DriverApp();
return classObj;
}
return {
getInstance: function () {
if (!instance) {
instance = createInstance();
}
return instance;
},
};
})();
module.exports = Singleton;