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 of toolbuilder/make-factory

Account's avatar
Quickly create an opinionated tsconfig.json
Account's avatar
Config module for npm-package-json-lint.
Account's avatar
Supports pack file testing for dual modules using Rollup.
Account's avatar
Configurable linter for package.json files.
Account's avatar
A CLI tool to run multiple npm-scripts in parallel or sequential. (Maintenance fork)
Account's avatar
Test runner for nodejs using zora
Account's avatar
A deep deletion module for node (like `rm -rf`)
Account's avatar
Next-generation ES module bundler
Account's avatar
JavaScript Standard Style
Account's avatar
TypeScript is a language for application scale JavaScript development
Account's avatar
Checks if a git repository has uncommitted changes.
Account's avatar
the lightest yet the fastest javascript testing library

Support the repos that depend on toolbuilder/make-factory

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