@jeydolen/generic_singleton

1.0.0 • Public • Published

Singleton

Singleton is a Javascript module used to force process to use one process

Installation

Use the node package manager to install.

npm install @jeydolen/generic_singleton

Usage

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

Readme

Keywords

Package Sidebar

Install

npm i @jeydolen/generic_singleton

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

2.04 kB

Total Files

3

Last publish

Collaborators

  • jeydolen