MCPcopy Create free account
hub / github.com/zxlie/FeHelper / readSource

Function readSource

test/options-page-ux.test.js:5–7  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

3import { describe, it, expect } from 'vitest';
4
5function readSource(filePath) {
6 return fs.readFileSync(path.resolve(filePath), 'utf8');
7}
8
9function sourceBetween(source, startMarker, endMarker) {
10 const start = source.indexOf(startMarker);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected