- Singleton
- Factory Method
- Abstract Factory
- Builder
- Prototype
- Adapter
- Bridge
- Composite
- Decorator
- Facade
- Flyweight
- Proxy
- Chain of Responsibility
- Command
- Interpreter
- Iterator
- Mediator
- Memento
- Observer
- State
- Strategy
- Template Method
- Visitor
Install dependencies:
npm install
Run example:
npm run pattern <pattern-name>
Replace with the name of the pattern you want to test (e.g. observer, state, visitor).