MCPcopy Create free account
hub / github.com/decaporg/decap-cms / fetchData

Function fetchData

packages/decap-cms-widget-code/scripts/process-languages.js:10–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8const loaderPath = '../src/languageLoaders.js';
9
10async function fetchData() {
11 const filePath = path.resolve(__dirname, rawDataPath);
12 const fileContent = await fs.readFile(filePath);
13 return yaml.parse(fileContent);
14}
15
16function outputData(data) {
17 const filePath = path.resolve(__dirname, outputPath);

Callers 1

processFunction · 0.85

Calls 1

readFileMethod · 0.45

Tested by

no test coverage detected