Retour au classement

torokmark/design_patterns_in_typescript

TypeScripttorokmark.github.io/design_patterns_in_typescript/

:triangular_ruler: Design pattern implementations in TypeScript

design-patternstypescriptadapterbuilderfacadecommandcomposite
Croissance des étoiles
Étoiles
5.4k
Forks
767
Croissance hebdomadaire
Issues
5
2k4k
juil. 2013nov. 2017mars 2022juil. 2026
Artefactsnpmnpm install design_patterns_in_typescript
README

Design Patterns in TypeScript

Here are the implementations of the following design patterns in TypeScript:

Creational

Structural Patterns

Behavioral Patterns

Compile the project

$ git clone https://github.com/torokmark/design_patterns_in_typescript.git
$ cd design_patterns_in_typescript
$ tsc

There is a tsconfig.json file in the root directory which is responsible for the compiler options.

As it is set the default target is Ecmascript5 now.

Any additional options come here.

By default the output is a patterns.js file.

To compile only one pattern, use the following command.

$ cd design_patterns_in_typescript/visitor
$ tsc --target ES5 --module system --outFile visitor.js visitor.ts

Execute the project

After the compilation of the project, a patterns.js is generated by default. Executing the file is:

node patterns.js
Dépôts similaires
donnemartin/system-design-primer

Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

PythonPyPIOtherprogrammingdevelopment
358.5k57.3k
iluwatar/java-design-patterns

Design patterns implemented in Java

JavaMavenOtherjavaprinciples
java-design-patterns.com
94.2k27.4k
binhnguyennus/awesome-scalability

The Patterns of Scalable, Reliable, and Performant Large-Scale Systems

MIT Licensesystem-designbackend
72.6k7k
DovAmir/awesome-design-patterns

A curated list of software and architecture related design patterns.

awesomeawesome-list
48.3k3.3k
nilbuild/design-patterns-for-humans

An ultra-simplified explanation to design patterns

design-patternsarchitecture
48k5.5k
kamranahmedse/design-patterns-for-humans

An ultra-simplified explanation to design patterns

design-patternsarchitecture
46.1k5.4k
faif/python-patterns

A collection of design patterns/idioms in Python

PythonPyPIpythonidioms
42.9k7k
tmrts/go-patterns

Curated list of Go design patterns, recipes and idioms

GoGo ModulesApache License 2.0goidioms
tmrts.com/go-patterns
28.1k2.3k
ashishps1/awesome-low-level-design

Learn Low Level Design (LLD) and prepare for interviews using free resources.

JavaMavenGNU General Public License v3.0awesomedesign-patterns
algomaster.io
25.5k6.2k
hollischuang/toBeTopJavaer

To Be Top Javaer - Java工程师成神之路

JavaMavenjavaprogrammer
hollischuang.com
25.4k5.4k
DesignPatternsPHP/DesignPatternsPHP

Sample code for several design patterns in PHP 8.x

PHPPackagistMIT Licensedesignpatternsphpphp
22.2k4.5k
inancgumus/learngo

❤️ 1000+ Hand-Crafted Go Examples, Exercises, and Quizzes. 🚀 Learn Go by fixing 1000+ tiny programs.

GoGo ModulesOthergolanggo
twitter.com/inancgumus
20.1k2.7k