MCPcopy Create free account
hub / github.com/donnikitos/vite-plugin-php / readFile

Function readFile

src/utils/file.ts:4–6  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

2import { dirname } from 'node:path';
3
4export function readFile(file: string) {
5 return readFileSync(file, 'utf-8').toString();
6}
7
8export function writeFile(file: string, data: string) {
9 mkdirSync(dirname(file), { recursive: true });

Callers 1

fromFileMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected