1.0.2 • Published 3 years ago
think-instance v1.0.2
think-instance
Install
npm install think-instance
How to Use
const thinkInstance = require('think-instance');
let cls = class {
constructor(conf1, conf2){
}
}
cls = thinkInstance(cls);
const instance = cls.getInstance(conf1, conf2);