index.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 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 11
mnd 0
bc 0
fnc 1
dl 0
loc 17
ccs 4
cts 4
cp 1
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
1
/*jslint node: true, nomen: true, regexp: true, plusplus: true */
2 1
(function () {
3
4
    "use strict";
5
6 1
    const   Blockfolio      = require("./lib/blockfolio");
7
8 1
    const   PLATFORM                = "APIClient",
9
            API_URL                 = "https://api-v0.blockfolio.com/rest/",
10
            SIGNAL_API              = "https://signal-api.blockfolio.com/",
11
            MAGIC_TOKEN             = "edtopjhgn2345piuty89whqejfiobh89-2q453", // Common token to pseudo-authenticate API Client
12
            LOCALE                  = "en-US",
13
            FIAT_CURRENCY           = "usd",
14
            PER_SECOND_RATE_LIMIT   = 10; // Throttle for the old school API
15
16 1
    module.exports = new Blockfolio(FIAT_CURRENCY, API_URL, MAGIC_TOKEN, LOCALE, PLATFORM, SIGNAL_API, PER_SECOND_RATE_LIMIT);
17
18
})();