-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
common.js
32 lines (30 loc) · 1000 Bytes
/
common.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
'use strict';
const submodules = [
'array', // Arrays manipulations
'auth', // Validation of data for authentication/authorization
'btree', // B-Tree for indexes in DB
'cache', // Cache (enhanced Map)
'callbacks', // Callback utilities
'data', // Data structures manipulations
'enum', // Enumerated type
'events', // Events and emitter
'flags', // Flags data type
'fp', // Functional programming
'fs', // File System
'id', // Keys and identifiers
'int64', // Int64
'iterator', // Iterator
'math', // Math common function
'mp', // Metaprogramming
'network', // Network utilities
'oop', // Object-oriented programming
'pool', // Object pool
'sort', // Sort compare functions
'stream', // Stream utilities
'strings', // Strings utilities
'time', // Date and Time functions
'uint64', // Uint64
'units', // Units conversion
'utilities', // Common utilities
].map((path) => require('./lib/' + path));
module.exports = Object.assign({}, ...submodules);