1.0.2 • Published 3 years ago

webtt-utils v1.0.2

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

webtt-utils

utils for webtt

const webttUtils = require('webtt-utils');

const log = webttUtils.log;
const utils = webttUtils.utils;

// 成功日志
log.success(info);
// 失败日志
log.error(info);
// 内容日志
log.info(info);
// 耗时日志
log.start(key);
// 耗时日志
log.end(key);


// 检查文件是否存在
utils.checkFile(fileName);
// 获取文件内容
utils.getFile(fileName);
// 获取随机端口
utils.getPort(basePort);
// 获取Npm包
utils.getNpm(command);
// 执行shell
utils.execShell(command);