JavaScript Design-Patterns Builder
npm install --save go-patterns
import patterns from 'go-patterns';
See docs for more patterns and information.
A simple example is the singleton, which the idea behind it is that you can only create a single instance from a class.
import patterns from 'go-patterns';
let Singleton = patterns.singleton().build();
console.log(new Singleton() === new Singleton()) // true