MCPcopy Index your code
hub / github.com/darkreader/darkreader / processAPIBuildModule

Function processAPIBuildModule

tasks/code-style.js:23–32  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

21const extensions = ['html', 'css', 'js'];
22
23async function processAPIBuildModule(filepath) {
24 const code = await readFile(filepath);
25 const formatted = await format(code, {
26 ...options,
27 filepath,
28 });
29 if (code !== formatted) {
30 await writeFile(filepath, formatted);
31 }
32}
33
34async function processAPIBuild() {
35 await processAPIBuildModule('darkreader.js');

Callers 1

processAPIBuildFunction · 0.85

Calls 2

readFileFunction · 0.90
writeFileFunction · 0.90

Tested by

no test coverage detected