MCPcopy Create free account
hub / github.com/remix-run/react-router / fileExists

Function fileExists

scripts/utils/fs.ts:3–5  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

1import * as fs from "node:fs";
2
3export function fileExists(filename: string): boolean {
4 return fs.existsSync(filename);
5}
6
7export function readFile(
8 filename: string,

Callers 2

parseChangelogFunction · 0.90
getUnpublishedPackagesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected