An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

singleton-pattern

Wrap a class with proxy to make it a safe singleton constructor. Using new Class() will return the same instance.

Ecosystem
npmjs.org
Latest Release
1.2.4
21 days ago
Versions
7
Downloads
12 last month
whether-is 1.3.4
A comprehensive, extensible, and type-friendly type and value checking utility for JavaScript/Typ...
7 versions - Latest release: 21 days ago - 29 downloads last month - 0 stars on GitHub - 1 maintainer
to-assigned 2.0.2
Like Object.assign but will return a new object and ignores non-object arguments.
9 versions - Latest release: 21 days ago - 1 downloads last month - 0 stars on GitHub - 1 maintainer
serial-task 1.2.2
Put a list of functions in and get a composed task function. Similar to functional programming's ...
5 versions - Latest release: 21 days ago - 143 downloads last month - 0 stars on GitHub - 1 maintainer
rollup-plugin-typescript-privatify 0.2.3
Custom transformers for @rollup/plugin-typescript to turn TypeScript private members into runtime...
5 versions - Latest release: 21 days ago - 0 stars on GitHub - 1 maintainer
rollup-plugin-inline-expand 0.0.3
Expand functions like C++ macros, but whether the result is syntactically correct depends on your...
2 versions - Latest release: 21 days ago - 1 maintainer
rollup-plugin-func-macro 1.2.2
Using __func__ like C++ to get current function name(ignores arrow function context)
11 versions - Latest release: 21 days ago - 12 downloads last month - 0 stars on GitHub - 1 maintainer
rollup-plugin-const-enum 1.1.5
A simple plugin to inline your const enums in typescript projects.
15 versions - Latest release: 21 days ago - 904 downloads last month - 0 stars on GitHub - 1 maintainer
rollup-plugin-conditional-compilation 2.1.2
Conditional Compilation macros like #if #endif in C++.
13 versions - Latest release: 21 days ago - 33 downloads last month - 0 stars on GitHub - 1 maintainer
reflect-deep 1.5.2
Deep property manipulation utilities with robust cloning, path traversal, and property access for...
14 versions - Latest release: 21 days ago - 20 downloads last month - 2 stars on GitHub - 1 maintainer
pseudo-json 0.1.1
JSON is too simple, not enough for flexible data. So try pseudo-json! Stringify and parse plain j...
4 versions - Latest release: 21 days ago - 12 downloads last month - 1 maintainer
probability-branch 1.1.8
A lightweight TypeScript library for probabilistic branching and random selection, powered by the...
10 versions - Latest release: 21 days ago - 38 downloads last month - 0 stars on GitHub - 1 maintainer
n-base-integer 1.1.2
Arbitrary-base integer with custom charset, supporting addition, subtraction, multiplication, com...
4 versions - Latest release: 21 days ago - 100 downloads last month - 0 stars on GitHub - 1 maintainer
minimal-event-bus 1.0.3
A minimal event bus, it's on, off and emit method can be used outside the class instance.
3 versions - Latest release: 21 days ago - 101 downloads last month - 1 maintainer
flat-pair 1.3.3
Using array to save pairs. Serializable and easier to find, locate by value. Provide static metho...
7 versions - Latest release: 21 days ago - 112 downloads last month - 0 stars on GitHub - 1 maintainer
defered-branch 2.2.9
Sometimes we need to judge something with multiple cases, but the main job should be done later. ...
19 versions - Latest release: 21 days ago - 127 downloads last month - 0 stars on GitHub - 1 maintainer
bind-params 1.1.5
Bind the first N parameters of a function, with full type hints!
7 versions - Latest release: 21 days ago - 116 downloads last month - 0 stars on GitHub - 1 maintainer
Links
Registry npmjs.org
Source Repository
Homepage Homepage
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:npm/singleton-pattern
spec
License MIT
First Release 7 months ago
Last Synced 1 day ago
Repository
Stars 0 on GitHub
Forks 0 on GitHub