0.1.0-alpha.3 • Published 2 years ago

@designpattern/pattern-lib v0.1.0-alpha.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Pattern Lib Banner

The Pattern Library project provides reusable design pattern componenets to be used in Javascript/Typescript projects. These components help achieve a loosely coupled design for re-occuring coding problems. The components exposed in this library are by no means complete and we actively seek contributions from our open-source community to expand it further.

Installlation

You can use this library in your project by running the following at your project root:

npm i @designpattern/pattern-lib

Documentation and Examples

We have contributed the following design patterns so far to the library. We have also contributed fully working examples for each of the patterns. Click on the links below to navigate to the detailed documentation or example usage for each.

PatternsDescriptionsDocsExamples
StrategizerProvides configurable execution strategiesdocsexample
TransformerProvides configurable transformationsdocsexample
FactoryProvides configurable factorydocsexample

You can run any of the patterns from the root of the project by running the npm run eg examples/<pattern-name> command. Here is an example command to run the Strategizer pattern:

npm run eg examples/strategizer

Contributing

We are actively seeking contributions of reusable patterns from our open-source community. Please read the following to learn how to contribute to the project:

Code of Conduct

We have adopted a Code of Conduct that we expect our contributors to honor. Please read the full text for more information.

Contributing Guide

Please read our Contributing Guide to understand our process to contribute bugfixes and new patterns to the project.

License

This project is licensed under the MIT License.