MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / writeFile

Function writeFile

gqftbz.js:617–628  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

615 });
616}
617function writeFile(data) {
618 const fs = require('fs');
619 return new Promise((resolve, reject) => {
620 fs.writeFile("./gqft.json", JSON.stringify(data, null, 2), (err) => {
621 if (err) {
622 reject(false);
623 } else {
624 resolve(true);
625 }
626 });
627 });
628}
629
630!(async () => {
631 if (!(await checkEnv())) return;

Callers 2

decryptMethod · 0.85
refresh_tokenMethod · 0.85

Calls 1

writeFileMethod · 0.80

Tested by

no test coverage detected