toolbuilder

toolbuilder/make-factory

Generate a factory class from a class constructor function. Adds static methods from all super classes

JavaScript
0
0
MIT License

Make Factory is a JavaScript library that generates a factory function from a class constructor, allowing instances to be created without using the 'new' keyword while retaining all static methods from the class and its superclasses. It's designed for developers who want flexibility in object instantiation, particularly those working with class hierarchies or building libraries where both factory and constructor patterns are useful. The library exports methods for creating factories, walking prototype chains, and retrieving class methods, making it valuable for library authors and developers seeking alternative instantiation patterns.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

toolbuilder's profile
toolbuilder
18 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet