MCPcopy
hub / github.com/sveltejs/svelte / read_file

Function read_file

packages/svelte/tests/helpers.js:35–37  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

33 * @param {string} file
34 */
35export function read_file(file) {
36 return fs.readFileSync(file, 'utf-8').replace(/\r\n/g, '\n');
37}
38
39export function create_deferred() {
40 /** @param {any} [value] */

Callers 2

test.tsFile · 0.90
try_read_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected