Singleton

To install dependencies:

bun install

To run:

bun start

This project was created using bun init in bun v1.0.23. Bun is a fast all-in-one JavaScript runtime.

A singleton is a design pattern that restricts the instantiation of a class to a single object. It provides a global point of access to that instance, making it useful in scenarios where you want to ensure that only one instance of a class is created and shared across the application.

To install dependencies:

bun install

To run:

bun start

This project was created using bun init in bun v1.0.23. Bun is a fast all-in-one JavaScript runtime.