think-instance

1.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i think-instance

Weekly Downloads

661

Version

1.0.2

License

none

Unpacked Size

7.86 kB

Total Files

7

Last publish

Collaborators

  • lizheming
  • welefen
  • sijiecai
  • lushijie
  • berwin
  • bezos
  • toxicjohann
  • huangxiaolu