Skip to content

lucrnz/observer-pattern-js

Repository files navigation

observer-pattern-js

I wrote this repo to show how I would implement the observer pattern in JavaScript, it also includes an implementation written in TypeScript.

You can read the full blog post here.

Diagrams

UML diagram

Flowchart

Usage

You need to have Node.js installed.

npm install

To run the JavaScript implementation:

npm run start:js

To run the TypeScript implementation:

npm run start:ts

License

Released under the public domain, see LICENSE.