src/index.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 31
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
mnd 0
bc 0
fnc 1
dl 0
loc 31
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
1
/**
2
 * @author Jinzulen
3
 * @license Apache 2.0
4
 * TenorJS - Lightweight NodeJS wrapper around the Tenor.com API.
5
 */
6
7
module.exports = function (Credentials)
8
{
9
      const Methods = {}, Utilities = require("./Tools/Utilities");
10
11
      /**
12
       * Check if the user is running an outdated version of TenorJS.
13
       */
14
      Utilities.checkVersion();
15
16
      /**
17
       * Methods related to search querying.
18
       */
19
      Methods.Search = require("./Search")(Credentials, Utilities);
20
21
      /**
22
       * Functions related to search autocompleting and suggestions.
23
       */
24
      Methods.Suggest = require("./Suggest")(Credentials, Utilities);
25
26
      /**
27
       * Methods related to trending content.
28
       */
29
      Methods.Trending = require("./Trending")(Credentials, Utilities);
30
31
      /**
32
       * Methods related to categories and tags.
33
       */
34
      Methods.Categories = require("./Categories")(Credentials, Utilities);
35
36
      return Methods;
37
};