1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00
unleash.unleash/src/lib/util/read-file.ts

5 lines
151 B
TypeScript
Raw Normal View History

import { promises as fs } from 'fs';
export const readFile: (file: string) => Promise<string> = async (file) =>
await fs.readFile(file, 'utf-8');