(filePath: string)
| 2 | import { appendFile, mkdir, rename, rm } from "fs/promises" |
| 3 | |
| 4 | export function readText(filePath: string) { |
| 5 | return Bun.file(filePath).text() |
| 6 | } |
| 7 | |
| 8 | export function readJson<T>(filePath: string) { |
| 9 | return Bun.file(filePath).json() as Promise<T> |
no test coverage detected