src/Search.js   A
last analyzed

Complexity

Total Complexity 4
Complexity/F 1

Size

Lines of Code 24
Function Count 4

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 12
mnd 0
bc 0
fnc 4
dl 0
loc 24
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, Utilities)
8
{
9
	const Methods = {};
10
11
	Methods.Find = function (IDs, Callback)
12
	{
13
		return require("./Methods/Search/Find")(Credentials,
14
			Utilities, IDs, Callback);
15
	};
16
17
	Methods.Query = function (Term, Limit, Callback)
18
	{
19
		return require("./Methods/Search/Query")(Credentials,
20
			Utilities, Term, Limit, Callback);
21
	};
22
23
	Methods.Random = function (Key, Limit, Callback)
24
	{
25
		return require("./Methods/Search/Random")(Credentials,
26
			Utilities, Key, Limit, Callback);
27
	};
28
29
	return Methods;
30
};