mihawk
Version:
A tiny & simple mock server tool, support json,js,cjs,ts(typescript).
19 lines (18 loc) • 1.64 kB
JavaScript
;
export { creataRandBool, createRandNum, createRandChar, createRandStr, createRandStrByLimit, createRandDate, createRandDateStr, createUUID, createRandId, createRandUrl, createRandPhone, createRandEmail, createRandColor, createRandImage, createRandIp, createRandName, createRandCname, } from './data-creator';
export { pickRand, dedupe, deepmerge, getListByPagination, shuffleList, shuffleString } from './data-resolver';
export { getType, isType, isNil, isPrimitvieType, isSimpleJsonPropType, isJsonStr, isNumStrict, isNaNStrict, isObjStrict, isEmptyObj, isEmptyArr } from '../utils/is';
export { isNullOrUndefined, isUndefinedOrNull, isEmptyList } from '../utils/is';
export { dateFormat, ensureDate, getTimeNowStr } from '../utils/date';
export { delNillProps, deepFreeze } from '../utils/obj';
export { fuzzyIncludes, shallowEqual, isMatchPatterns, formatPatterns, delAddrProtocol } from '../utils/str';
export { getSafeNum } from '../utils/num';
export { sleep, timeoutPromise } from '../utils/async';
export { formatPath, isExistedSync, absifyPath, unixifyPath, relPathToCWD } from '../utils/path';
export { readFileSafeSync, readJsonSafeSync, writeFileSafeSync, writeJSONSafeSync } from '../utils/file';
export { jsonRequest } from '../utils/request';
export { parseStompMsg } from '../utils/parser';
export { Printer } from '../utils/print';
export { supportLocalHost, isPortInUse, isLocalHost, getMyIp, detectPort } from '../utils/net';
export { getPortByServer as getPort, getAddressByServer as getAddress, getAddrInfoByServer as getAddrInfo } from '../utils/server';
export { default as Colors } from 'color-cc';