PLAYGROUND
Try before you
install.
Interactive sandboxes for every ROOT npm package. Edit the code, see the output, and understand what each package does , no setup required.
ASYNC
@azghr/singlet
Deduplicate concurrent async calls: same key, one in-flight promise.
npm i @azghr/singletEXAMPLE.TS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SIMULATED OUTPUT
Fetching user 1...
Same object? true true
Result: { id: 1, name: 'Alice', email: 'alice@example.com' }
Output is simulated to demonstrate package behavior. Install the package and run the code for real results.