1.0.2 • Published 3 years ago

think-instance v1.0.2

Weekly downloads
282
License
-
Repository
github
Last release
3 years ago

think-instance

Build Status Coverage Status npm

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);