panjara
v1.0.0
Published
Give your modules a memory by safely assigning globals scoped to a module ID.
Downloads
2
Readme
Panjara
Give your modules a memory by safely assigning globals scoped to a module ID.
Usage
import remember from "panjara";
const memory = remember(module, {
wasRunBefore: false
// ...
})
if (!memory.wasRunBefore) {
memory.wasRunBefore = true;
}