MCPcopy Create free account
hub / github.com/webpack/webpack-cli / readFile

Function readFile

test/utils/test-utils.js:338–346  ·  view source on GitHub ↗
(path, options = {})

Source from the content-addressed store, hash-verified

336};
337
338const readFile = (path, options = {}) =>
339 new Promise((resolve, reject) => {
340 fs.readFile(path, options, (err, stats) => {
341 if (err) {
342 reject(err);
343 }
344 resolve(stats);
345 });
346 });
347
348const readdir = (path) =>
349 new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected