- Design Patterns in Node.js
SETUP
npm i
TO RUN
cd (version)/(pattern-type)/(pattern)
node main.js
Example:
cd es6/creational/constructor node main.js
** TYPESCRIPT FILES **
ts-node file.ts
- Creational
- a. Constructor
- b. Factory
- c. Module
- d. Prototype
- e. Singleton
- Structural
- a. Decorator
- b. Façade
- c. Flyweight
- Behavioral
- a. Command
- b. Mediator
- c. Observer