es6-design-patterns

Software design patterns implemented in EcmaScript 6


In this project we present software design patterns in EcmaScript 6.

Images were generated by StarUML from the .mdj file in the staruml-design-patterns project.

Everyone is welcome to improve on this and provide implementation in various programming languages.

Target audience

Tehnical developers in the making. Previous Javascript and design pattern knowledge is recommended.

Content

Creational Patterns

Abstract Factory

Abstract Factory

Test this



Builder

Builder

Builder

Test this



Factory Method

Factory Method

Test this



Prototype

Prototype

Test this



Singleton

Singleton

Test this



Structural Patterns

Adapter

Adapter MultiInheritance

Test this



Bridge

Bridge

Test this



Composite

Composite

Test this



Decorator

Decorator

Test this



Façade

Façade

Test this



Flyweight

Flyweight

Test this



Proxy

Proxy

Test this



Behavioral Patterns

Chain of Responsibility

Chain of Responsibility

Test this



Command

Command

Command Sequence

Test this



Interpreter

Interpreter

Test this



Iterator

Iterator

Test this



Mediator

Mediator

Test this



Memento

Memento

Memento

Test this



Observer

Observer

Observer Sequence

Test this



State

State

Test this



Strategy

Strategy

Test this



Template Method

Template Method

Test this



Visitor

Visitor

Visitor

Test this



View on GitHub