Skip to content
Snippets Groups Projects
index.js 840 B
Newer Older
clemo's avatar
clemo committed
import Math from './lib/math.js';
import Lib from './lib/lib.js';
import Form from './lib/form.js';
clemo's avatar
clemo committed
import * as config from './lib/config.js';
clemo's avatar
clemo committed
import * as Express from './lib/express.js';
clemo's avatar
clemo committed
/**
* debug node modules
* @constructor
* @params {String} - channel
* use app:xxx:info , app:xxx:error, app:xxx:debug
*/
clemo's avatar
clemo committed
import debug from 'debug';
clemo's avatar
clemo committed
const log = debug('helper:index:info');
const error = debug('helper:index:error');
clemo's avatar
clemo committed
exports.debug = debug;
exports.Math = Math;
exports.Lib = Lib;
exports.Form = Form;
clemo's avatar
clemo committed
exports.config = config.default;
exports.Config = config.Config;
clemo's avatar
clemo committed
exports.express = Express;
exports.Express = Express;
clemo's avatar
clemo committed
/** will generate a uuid -> use `new Math().uuid()` */
const uuid = function uuid(x) {
clemo's avatar
clemo committed
  error('helper.uuid() will be removed soon, use new helper.Math().uuid()');
  return new Math().uuid(x);
clemo's avatar
clemo committed
};
exports.uuid = uuid;