Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.217.80
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nodejs /
istanbul-reports /
lib /
json /
Delete
Unzip
Name
Size
Permission
Date
Action
index.js
1
KB
-rw-r--r--
2023-08-21 05:40
Save
Rename
/* Copyright 2012-2015, Yahoo Inc. Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ 'use strict'; const { ReportBase } = require('istanbul-lib-report'); class JsonReport extends ReportBase { constructor(opts) { super(); this.file = opts.file || 'coverage-final.json'; this.first = true; } onStart(root, context) { this.contentWriter = context.writer.writeFile(this.file); this.contentWriter.write('{'); } onDetail(node) { const fc = node.getFileCoverage(); const key = fc.path; const cw = this.contentWriter; if (this.first) { this.first = false; } else { cw.write(','); } cw.write(JSON.stringify(key)); cw.write(': '); cw.write(JSON.stringify(fc)); cw.println(''); } onEnd() { const cw = this.contentWriter; cw.println('}'); cw.close(); } } module.exports = JsonReport;