In this post, we will create a singleton like class in beautiful minimal vanilla es6 module syntax. Singletons exports are useful for single instance modules without reading and writing to the global space (window, window.app, …). Our singleton like instance can easily be im/exported with es6 module syntax. Additionally, classes can be used in a higher level of the class chain if exported. The mag
![ES6 Modules - Single Instance Pattern](https://cdn-ak-scissors.b.st-hatena.com/image/square/310e3b8ca0642988916d0ac9af8afbf3e7c7e4cc/height=288;version=1;width=512/https%3A%2F%2Fk94n.com%2Fassets%2Ftouch-icon.png)