GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

scripts/js/workspace.package.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 17
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 1 Features 0
Metric Value
cc 0
c 3
b 1
f 0
nc 1
dl 0
loc 17
rs 10
wmc 1
mnd 0
bc 1
fnc 1
bpm 1
cpm 1
noi 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A zip.generateNodeStream.finish 0 5 1
1
var path = require('path');
2
var fs = require('fs');
3
var JSZip = require("jszip");
4
var zip = new JSZip();
5
6
zip.file("Hello.txt", "Hello World\n");
7
8
//var img = zip.folder("images");
9
//img.file("smile.gif", imgData, {base64: true});
10
11
zip.generateNodeStream({type:'nodebuffer',streamFiles:true})
12
    .pipe(fs.createWriteStream('example.zip'))
13
    .on('finish', function () {
14
        // JSZip generates a readable stream with a "end" event,
15
        // but is piped here in a writable stream which emits a "finish" event.
16
        console.log("example.zip written.");
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
17
    });
18