(data)
| 615 | }); |
| 616 | } |
| 617 | function 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; |
no test coverage detected