# @jeydolen/generic_singleton

> Classic singleton for any app that need one

Latest version **1.0.0** (published 2020-09-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jeydolen/generic_singleton
pnpm add @jeydolen/generic_singleton
yarn add @jeydolen/generic_singleton
bun add @jeydolen/generic_singleton
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-09-18 |
| First published | 2020-09-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jeydolen & Echopraxium |
| Maintainers | jeydolen |
| Keywords | singleton |

## Links

- npm: https://www.npmjs.com/package/@jeydolen/generic_singleton
- npm.io page: https://npm.io/package/@jeydolen/generic_singleton

## Dependencies (1)

- [assert](https://npm.io/package/assert.md) ^2.0.0

## Recent versions

- 1.0.0 (latest) — 2020-09-18

## README

# Singleton

Singleton is a Javascript module used to force process to use one process

## Installation

Use the node package manager to install.

```bash
npm install @jeydolen/generic_singleton
```

## Usage

```javascript
const Singleton = require ('@jeydolen/generic_singleton')

class test extends Singleton
{
    static Singleton = test.GetSingleton();
    constructor(args)
    {
		super (args)
    }

    show_msg ( msg )
    {
        console.log ( msg );
    }
}


const unit_test = ( args ) =>
{
    // test.show_msg;  ( not working )
    test.GetSingleton().show_msg(('test');
};

unit_test();
```


## License
[MIT](https://choosealicense.com/licenses/mit/)

---
_Source: https://npm.io/package/@jeydolen/generic_singleton · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
