Skip to content

thinkjs/think-instance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

get class instance

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •