UNPKG

prisma-eventify

Version:

Prisma-Eventify is a crucial module designed to facilitate seamless communication between the ORM (Prisma) and the HTTP server (GraphQL | Rest) by employing event-driven development principles.

7 lines (4 loc) 268 B
import ts from 'typescript' export const capitalize = (str: string): string => `${str.charAt(0).toUpperCase()}${str.slice(1)}` export const createSourceFile = (filename: string) => ts.createSourceFile(filename, '', ts.ScriptTarget.Latest, false, ts.ScriptKind.TS)