@mado/remember
v0.0.1
Published
Simple singleton implementation
Downloads
1
Readme
@mado/remember
Simple "singleton" implementation.
Installation
npm install @mado/remember
# or
yarn add @mado/remember
# or
pnpm add @mado/remember
Usage
import { remember } from '@mado/remember';
import { PrismaClient } from '@prisma/client';
export const prisma = remember('prisma', () => new PrismaClient());