0.0.13 • Published 6 months ago
bendline v0.0.13
🧰 Bendline
APIs
ben
symbol | type | params / value |
---|---|---|
_NEED | Array | office-text-extractor,custommod2 |
benneedtest | AsyncFunction | |
bensadd | Function | num1, num2 |
sub | Function | num1, num2 |
boxes
symbol | type | params / value | ||
---|---|---|---|---|
default | Object | {"topLeft":"╭","top":"─","topRight":"╮","right":"│","bottomRight":"╯","bottom":"─","bottomLeft":"╰","left":"│"} | ||
arrow | Object | {"topLeft":"↘","top":"↓","topRight":"↙","right":"←","bottomRight":"↖","bottom":"↑","bottomLeft":"↗","left":"→"} | ||
bold | Object | {"topLeft":"┏","top":"━","topRight":"┓","right":"┃","bottomRight":"┛","bottom":"━","bottomLeft":"┗","left":"┃"} | ||
classic | Object | {"topLeft":"+","top":"-","topRight":"+","right":" | ","bottomRight":"+","bottom":"-","bottomLeft":"+","left":" | "} |
double | Object | {"topLeft":"╔","top":"═","topRight":"╗","right":"║","bottomRight":"╝","bottom":"═","bottomLeft":"╚","left":"║"} | ||
doubleSingle | Object | {"topLeft":"╒","top":"═","topRight":"╕","right":"│","bottomRight":"╛","bottom":"═","bottomLeft":"╘","left":"│"} | ||
round | Object | {"topLeft":"╭","top":"─","topRight":"╮","right":"│","bottomRight":"╯","bottom":"─","bottomLeft":"╰","left":"│"} | ||
single | Object | {"topLeft":"┌","top":"─","topRight":"┐","right":"│","bottomRight":"┘","bottom":"─","bottomLeft":"└","left":"│"} | ||
singleDouble | Object | {"topLeft":"╓","top":"─","topRight":"╖","right":"║","bottomRight":"╜","bottom":"─","bottomLeft":"╙","left":"║"} |
color
symbol | type | params / value |
---|---|---|
default | Object | {} |
encryption
symbol | type | params / value |
---|---|---|
_NEED | Array | crypto |
defaultAlgorithm | String | sha256 |
hash | Function | string, algorithm |
sha256 | Function | string, algorithm |
polyfills
symbol | type | params / value |
---|---|---|
default | Object | {} |
shot
symbol | type | params / value |
---|---|---|
default | AsyncFunction | url, options |
checkVersion | AsyncFunction | pack |
get | AsyncFunction | url, options |
getCurrentIp | AsyncFunction | options |
getCurrentPosition | AsyncFunction | |
getJson | AsyncFunction | u, o |
getParsedHtml | AsyncFunction | u, o |
getVersionOnNpm | AsyncFunction | packName |
storage
symbol | type | params / value |
---|---|---|
_NEED | Array | mime-types,@google-cloud/storage |
analyzeFile | AsyncFunction | any, options |
assertPath | AsyncFunction | path, type, mode, msg, code, options |
convert | AsyncFunction | any, options |
encodeBase64DataURL | Function | mime, buffer |
exists | AsyncFunction | filename |
existsOnCloud | AsyncFunction | destination |
getConfig | AsyncFunction | options |
getConfigFilename | AsyncFunction | options |
getGcUrlByBucket | Function | bucke |
getTempPath | Function | options |
handleError | Function | err, opts |
init | AsyncFunction | options |
isTextFile | AsyncFunction | file, options |
legalFilename | Function | filename |
mapFilename | Function | |
mergeFile | AsyncFunction | data, options |
readFile | AsyncFunction | name, options |
readJson | AsyncFunction | filename, options |
setConfig | AsyncFunction | data, options |
sliceFile | AsyncFunction | any, options |
touchPath | AsyncFunction | path, options |
tryRm | AsyncFunction | path, options |
unzip | AsyncFunction | any, options |
uploadToCloud | AsyncFunction | data, options |
writeFile | AsyncFunction | filename, data, options |
writeJson | AsyncFunction | filename, data, options |
writeTempFile | AsyncFunction | data, options |
zip | AsyncFunction | any, options |
style
symbol | type | params / value |
---|---|---|
default | Object | {"reset":[],"bold":[],"dim":[],"italic":[],"underline":[],"inverse":[],"hidden":[],"strikethrough":[],"black":[],"red":[],"green":[],"yellow":[],"blue":[],"magenta":[],"cyan":[],"white":[],"gray":[],"grey":[],"brightRed":[],"brightGreen":[],"brightYellow":[],"brightBlue":[],"brightMagenta":[],"brightCyan":[],"brightWhite":[],"bgBlack":[],"bgRed":[],"bgGreen":[],"bgYellow":[],"bgBlue":[],"bgMagenta":[],"bgCyan":[],"bgWhite":[],"bgGray":[],"bgGrey":[],"bgBrightRed":[],"bgBrightGreen":[],"bgBrightYellow":[],"bgBrightBlue":[],"bgBrightMagenta":[],"bgBrightCyan":[],"bgBrightWhite":[],"blackBG":[],"redBG":[],"greenBG":[],"yellowBG":[],"blueBG":[],"magentaBG":[],"cyanBG":[],"whiteBG":[]} |
utillie
symbol | type | params / value |
---|---|---|
__ | Function | url, r |
analyzeModule | Function | obj |
arrayEqual | Function | arrA, arrB |
assembleApiUrl | Function | hst, path, args |
assembleUrl | Function | url, componens |
assertArray | Function | arr, message, status, opts |
assertBuffer | Function | buffer, message, status, options |
assertDate | Function | time, message, status, options |
assertEmail | Function | email, message, status, options |
assertFunction | Function | fn, message, status, opts |
assertModule | Function | mdl, message, status, opts |
assertObject | Function | obj, message, status, opts |
assertSet | Function | value, message, status, options |
assertUrl | Function | url, message, status, options |
assertUuid | Function | uuid, message, status, options |
asyncTimeout | AsyncFunction | pms, timeout, err |
base64Decode | Function | string, toBuf |
base64Encode | Function | object, isBuf |
base64Pack | Function | object |
base64Unpack | Function | string |
basename | Function | |
byteToHexString | Function | byteArray |
call | Function | f, ...a |
checkInterval | Function | itv, sed |
clarify | Function | |
clone | Function | any |
convertBase | Function | ipt, from, to |
convertFrom16to10 | Function | ipt |
countKeys | Function | any |
deepCleanBigInt | Function | any, func |
distill | Function | any, strict |
ensureArray | Function | any |
ensureDate | Function | dt, options |
ensureInt | Function | any, options |
ensureLines | Function | any, op |
ensureString | Function | str, options |
escapeHtml | Function | |
exclude | Function | obj, keys |
extError | Function | err, status, opt |
extract | Function | ...path |
fileURLToPath | Function | path |
fullLengthLog | Function | string, options |
getDateByUnixTimestamp | Function | timestamp |
getFuncParams | Function | func |
getItemFromStringOrArray | Function | any |
getKeyByValue | Function | object, value |
getRandomIndexInArray | Function | array, options |
getRandomInt | Function | |
getRandomItemInArray | Function | array, options |
getShortestInArray | Function | arr |
getType | Function | any |
getUnixTimestampByDate | Function | date |
hexDecode | Function | string, toBuf |
hexEncode | Function | object, isBuf |
humanReadableBoolean | Function | ensureString(any |
ignoreErrFunc | AsyncFunction | func, options |
inBrowser | Function | |
insensitiveCompare | Function | strA, strB, options |
insensitiveHas | Function | list, srt, options |
is | Function | type, any |
isAscii | Function | str |
isModule | Function | module, module |
isNull | Function | object, object |
isSet | Function | o, strict |
isUndefined | Function | any, any |
lineSplit | Function | string, options |
locate | AsyncFunction | rootPack |
log | Function | content, filename, options |
makeStringByLength | Function | string, length |
mapKeys | Function | any, map, strict, path |
mask | Function | str, options |
matchVersion | Function | curVer, tgtVer |
mergeAtoB | Function | objA, objB, o |
need | AsyncFunction | name, options |
newError | Function | msg, status, opt |
once | Function | fn, context |
parseJson | Function | any, fallback |
parseVersion | Function | verstr |
prettyJson | Function | object, opt |
purgeEmoji | Function | any, replace |
randomArray | Function | array |
range | Function | from, to, options |
renderBox | Function | content, options |
renderCode | Function | code, options |
renderObject | Function | obj, options |
renderText | Function | text, options |
resolve | AsyncFunction | async, res |
rotate | Function | any, step, opts |
shiftTime | Function | dif, base |
split | Function | str, options |
splitArgs | Function | |
supportAnsiColor | Function | |
throwError | Function | msg, status, opt |
timeout | Function | |
toExponential | Function | x, f |
toString | Function | any, options |
trim | Function | str, opts |
tryUntil | AsyncFunction | fnTry, options |
uniqueArray | Function | array |
verifyEmail | Function | any |
verifyPhone | Function | phone |
verifyUrl | Function | url |
verifyUuid | Function | uuid |
voidFunc | Function | |
which | AsyncFunction | any |