UNPKG

@lucide/helpers

Version:

A internal used package with helpers.

11 lines (9 loc) 252 B
import fs from 'fs'; import path from 'path'; /** * Reads the file contents. * * @param {string} path * @returns {string} The contents of a file */ export const readFile = (path) => fs.readFileSync(path.resolve(__dirname, '../', path), 'utf-8');