about instancer a small function of a few lines of code, combined with all methods after instantiation useage npm i instancer --save import instancer from 'instancer'; const cat = instancer(Cat, ['getName']);