import Math from './lib/math.js'; import Lib from './lib/lib.js'; import Form from './lib/form.js'; import * as config from './lib/config.js'; import * as Express from './lib/express.js'; import {Ssb} from './lib/ssb.js'; /** * debug node modules * @constructor * @params {String} - channel * use app:xxx:info , app:xxx:error, app:xxx:debug */ import debug from 'debug'; const log = debug('helper:index:info'); const error = debug('helper:index:error'); exports.debug = debug; exports.Math = Math; exports.Lib = Lib; exports.Form = Form; exports.config = config.default; exports.Config = config.Config; exports.express = Express; exports.Express = Express; exports.Ssb = Ssb; /** will generate a uuid -> use `new Math().uuid()` */ const uuid = function uuid(x) { error('helper.uuid() will be removed soon, use new helper.Math().uuid()'); return new Math().uuid(x); }; exports.uuid = uuid;