0.0.11 • Published 2 years ago
utillie v0.0.11
🧰 Utillie
Installing
Package manager
Using npm:
$ npm install utillieUsing bower:
$ bower install utillieUsing yarn:
$ yarn add utillieUsing pnpm:
$ pnpm add utillieAPIs
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 | {} |
date
| symbol | type | params / value |
|---|---|---|
| YYYYMMDD | Function | d, sep |
| YYYYMMDDHHmmss | Function | d, options |
| YYYYMMDDHHmmssSSS | Function | d, msSep |
| accessLogDate | Function | d |
| datestruct | Function | now |
| timestamp | Function | t |
encryption
| symbol | type | params / value |
|---|---|---|
| _NEED | Array | crypto |
| defaultAlgorithm | String | sha256 |
| hash | Function | string, algorithm |
| sha256 | Function | string, algorithm |
fflip
| symbol | type | params / value |
|---|---|---|
| default | Object | {"features":{},"criteria":{},"_reloadRate":30000} |
| fflipConfig | Function | params |
| fflipCriteria | Object | {} |
| fflipExpress | Function | |
| fflipExpressMiddleware | Function | |
| fflipExpressRoute | Function | |
| fflipFeatures | Object | {} |
| fflipGetFeaturesForUser | Function | user, flags |
| fflipIsFeatureEnabledForUser | Function | featureName, user |
| fflipUserHasFeature | Function | ...args |
leaky
| symbol | type | params / value |
|---|---|---|
| _NEED | Array | debug |
| LeakyBucket | Function | capacity, timeout, interval |
polyfills
| symbol | type | params / value |
|---|---|---|
| default | Object | {} |
shopify
| symbol | type | params / value |
|---|---|---|
| ShopifyError | Function | ...args |
| ShopifyStorefrontClient | Function | options |
| createShopifyCheckout | Function | client |
| decodeHost | Function | host |
| getLocalCheckout | Function | |
| sanitizeHost | Function | |
| sanitizeShop | Function | config |
| setLocalCheckout | Function | checkout |
| shopifyMock | Function | |
| updateShopifyCheckout | Function | client |
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 |
smoldash
| symbol | type | params / value |
|---|---|---|
| _NEED | Array | smoldash |
| at | Function | source, paths |
| clone | Function | value |
| cloneDeep | Function | value |
| compact | Function | arr |
| every | Function | collection, predicate |
| filter | Function | collection, predicate |
| find | Function | collection, predicate, fromIndex |
| findIndex | Function | collection, predicate, fromIndex |
| flatten | Function | arr |
| flow | Function | ...fns |
| forEach | Function | value, callback |
| get | Function | source, path, defaultValue |
| groupBy | Function | collection, iteratee |
| has | Function | source, path |
| head | Function | arr |
| indexOf | Function | arr, value, startIndex |
| isEmpty | Function | v |
| isEqual | Function | a, b |
| kebabCase | Function | input |
| keyBy | Function | collection, iteratee |
| map | Function | collection, iteratee |
| merge | Function | ...objs |
| once | Function | fn |
| pickBy | Function | obj, predicate |
| range | Function | start, end, step |
| some | Function | collection, predicate |
| sortBy | Function | arr, keys |
| take | Function | arr, n |
| uniq | Function | arr |
| uniqBy | Function | arr, iteratee |
| uniqueId | Function | prefix |
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 |