UNPKG

pury

Version:

🛡️ AI-powered security scanner with advanced threat detection, dual reporting system (detailed & summary), and comprehensive code analysis

11 lines 352 B
import { promises as fs } from 'fs'; export class JsonReporter { async output(report) { console.log(JSON.stringify(report, null, 2)); } async writeToFile(report, filePath) { const jsonOutput = JSON.stringify(report, null, 2); await fs.writeFile(filePath, jsonOutput, 'utf8'); } } //# sourceMappingURL=json.js.map