lib/icon.js   A
last analyzed

Complexity

Total Complexity 3
Complexity/F 1

Size

Lines of Code 14
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

3 Functions

Rating   Name   Duplication   Size   Complexity  
A icon.js ➔ Icon 0 5 1
A Icon.getURL 0 3 1
A Icon.constructor 0 11 1
1
"use strict";
2
Object.defineProperty(exports, "__esModule", { value: true });
3
var Icon = /** @class */ (function () {
4
    function Icon(id, version, cdn) {
5
        this.id = id;
6
        this.cdn = cdn;
7
        this.version = version;
8
    }
9
    Icon.prototype.getURL = function () {
10
        return this.cdn + "/" + this.version + "/img/profileicon/" + this.id + ".png";
11
    };
12
    return Icon;
13
}());
14
exports.Icon = Icon;
15
//# sourceMappingURL=icon.js.map