@maiyunnet/kebab 7.6.0 → 7.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/doc/README.sc.md +201 -0
- package/doc/README.tc.md +203 -0
- package/doc/icon.png +0 -0
- package/doc/kebab-rag.md +23161 -0
- package/doc/sc/api/index/index.md +47 -0
- package/doc/sc/api/index/interfaces/IConfig.md +165 -0
- package/doc/sc/api/index/interfaces/IConfigAi.md +29 -0
- package/doc/sc/api/index/interfaces/IConfigConst.md +201 -0
- package/doc/sc/api/index/interfaces/IConfigDb.md +59 -0
- package/doc/sc/api/index/interfaces/IConfigDns.md +27 -0
- package/doc/sc/api/index/interfaces/IConfigJwt.md +51 -0
- package/doc/sc/api/index/interfaces/IConfigKv.md +59 -0
- package/doc/sc/api/index/interfaces/IConfigLang.md +27 -0
- package/doc/sc/api/index/interfaces/IConfigS3.md +53 -0
- package/doc/sc/api/index/interfaces/IConfigSql.md +19 -0
- package/doc/sc/api/index/interfaces/IConfigTurnstile.md +51 -0
- package/doc/sc/api/index/interfaces/IConfigVector.md +51 -0
- package/doc/sc/api/index/interfaces/IPostFile.md +43 -0
- package/doc/sc/api/index/interfaces/IUrlParse.md +97 -0
- package/doc/sc/api/index/interfaces/IVhost.md +43 -0
- package/doc/sc/api/index/type-aliases/DbValue.md +13 -0
- package/doc/sc/api/index/type-aliases/Json.md +13 -0
- package/doc/sc/api/index/variables/CERT_CWD.md +11 -0
- package/doc/sc/api/index/variables/CONF_CWD.md +11 -0
- package/doc/sc/api/index/variables/FTMP_CWD.md +11 -0
- package/doc/sc/api/index/variables/IND_CWD.md +11 -0
- package/doc/sc/api/index/variables/LIB_CWD.md +11 -0
- package/doc/sc/api/index/variables/LIB_PATH.md +11 -0
- package/doc/sc/api/index/variables/LOG_CWD.md +11 -0
- package/doc/sc/api/index/variables/MOD_CWD.md +11 -0
- package/doc/sc/api/index/variables/ROOT_CWD.md +13 -0
- package/doc/sc/api/index/variables/ROOT_PATH.md +13 -0
- package/doc/sc/api/index/variables/SYS_PATH.md +11 -0
- package/doc/sc/api/index/variables/VER.md +13 -0
- package/doc/sc/api/index/variables/VHOST_CWD.md +11 -0
- package/doc/sc/api/index/variables/WWW_CWD.md +11 -0
- package/doc/sc/api/index.md +48 -0
- package/doc/sc/api/lib/ai/classes/Ai.md +103 -0
- package/doc/sc/api/lib/ai/enumerations/ESERVICE.md +61 -0
- package/doc/sc/api/lib/ai/functions/get.md +29 -0
- package/doc/sc/api/lib/ai/index.md +23 -0
- package/doc/sc/api/lib/ai/interfaces/IOptions.md +65 -0
- package/doc/sc/api/lib/buffer/classes/Reader.md +177 -0
- package/doc/sc/api/lib/buffer/classes/Writer.md +147 -0
- package/doc/sc/api/lib/buffer/functions/getReader.md +25 -0
- package/doc/sc/api/lib/buffer/functions/getWriter.md +25 -0
- package/doc/sc/api/lib/buffer/index.md +17 -0
- package/doc/sc/api/lib/captcha/classes/Captcha.md +79 -0
- package/doc/sc/api/lib/captcha/functions/get.md +37 -0
- package/doc/sc/api/lib/captcha/index.md +15 -0
- package/doc/sc/api/lib/consistent/classes/Consistent.md +135 -0
- package/doc/sc/api/lib/consistent/functions/addToCircle.md +37 -0
- package/doc/sc/api/lib/consistent/functions/fast.md +37 -0
- package/doc/sc/api/lib/consistent/functions/findInCircle.md +37 -0
- package/doc/sc/api/lib/consistent/functions/get.md +21 -0
- package/doc/sc/api/lib/consistent/functions/getRange.md +37 -0
- package/doc/sc/api/lib/consistent/functions/hash.md +25 -0
- package/doc/sc/api/lib/consistent/index.md +20 -0
- package/doc/sc/api/lib/core/functions/checkType.md +37 -0
- package/doc/sc/api/lib/core/functions/clone.md +31 -0
- package/doc/sc/api/lib/core/functions/convert62.md +25 -0
- package/doc/sc/api/lib/core/functions/debug.md +31 -0
- package/doc/sc/api/lib/core/functions/display.md +31 -0
- package/doc/sc/api/lib/core/functions/emptyObject.md +31 -0
- package/doc/sc/api/lib/core/functions/exec.md +31 -0
- package/doc/sc/api/lib/core/functions/getLog.md +71 -0
- package/doc/sc/api/lib/core/functions/ip.md +27 -0
- package/doc/sc/api/lib/core/functions/log.md +37 -0
- package/doc/sc/api/lib/core/functions/ls.md +39 -0
- package/doc/sc/api/lib/core/functions/muid.md +59 -0
- package/doc/sc/api/lib/core/functions/objectSort.md +31 -0
- package/doc/sc/api/lib/core/functions/passThroughAppend.md +37 -0
- package/doc/sc/api/lib/core/functions/purify.md +25 -0
- package/doc/sc/api/lib/core/functions/rand.md +37 -0
- package/doc/sc/api/lib/core/functions/random.md +37 -0
- package/doc/sc/api/lib/core/functions/realIP.md +29 -0
- package/doc/sc/api/lib/core/functions/removeGlobal.md +31 -0
- package/doc/sc/api/lib/core/functions/sendNpm.md +31 -0
- package/doc/sc/api/lib/core/functions/sendPm2.md +37 -0
- package/doc/sc/api/lib/core/functions/sendReload.md +24 -0
- package/doc/sc/api/lib/core/functions/sendRestart.md +24 -0
- package/doc/sc/api/lib/core/functions/setCookie.md +43 -0
- package/doc/sc/api/lib/core/functions/setGlobal.md +37 -0
- package/doc/sc/api/lib/core/functions/sleep.md +25 -0
- package/doc/sc/api/lib/core/functions/unconvert62.md +25 -0
- package/doc/sc/api/lib/core/functions/updateCode.md +49 -0
- package/doc/sc/api/lib/core/functions/write.md +31 -0
- package/doc/sc/api/lib/core/functions/writeEventStreamHead.md +21 -0
- package/doc/sc/api/lib/core/functions/writeHead.md +37 -0
- package/doc/sc/api/lib/core/index.md +66 -0
- package/doc/sc/api/lib/core/interfaces/ICookieOptions.md +59 -0
- package/doc/sc/api/lib/core/interfaces/ILogOptions.md +75 -0
- package/doc/sc/api/lib/core/type-aliases/TPm2Action.md +13 -0
- package/doc/sc/api/lib/core/variables/RANDOM_L.md +13 -0
- package/doc/sc/api/lib/core/variables/RANDOM_LN.md +13 -0
- package/doc/sc/api/lib/core/variables/RANDOM_LU.md +13 -0
- package/doc/sc/api/lib/core/variables/RANDOM_LUN.md +13 -0
- package/doc/sc/api/lib/core/variables/RANDOM_LUNS.md +13 -0
- package/doc/sc/api/lib/core/variables/RANDOM_N.md +13 -0
- package/doc/sc/api/lib/core/variables/RANDOM_U.md +13 -0
- package/doc/sc/api/lib/core/variables/RANDOM_UN.md +13 -0
- package/doc/sc/api/lib/core/variables/RANDOM_V.md +13 -0
- package/doc/sc/api/lib/core/variables/REAL_IP_CF.md +13 -0
- package/doc/sc/api/lib/core/variables/REAL_IP_X.md +13 -0
- package/doc/sc/api/lib/core/variables/global.md +13 -0
- package/doc/sc/api/lib/core/variables/globalConfig.md +47 -0
- package/doc/sc/api/lib/cron/functions/getRegulars.md +17 -0
- package/doc/sc/api/lib/cron/functions/regular.md +31 -0
- package/doc/sc/api/lib/cron/index.md +17 -0
- package/doc/sc/api/lib/cron/interfaces/IRegular.md +59 -0
- package/doc/sc/api/lib/cron/interfaces/IRegularData.md +101 -0
- package/doc/sc/api/lib/crypto/functions/aesDecrypt.md +91 -0
- package/doc/sc/api/lib/crypto/functions/aesEncrypt.md +95 -0
- package/doc/sc/api/lib/crypto/functions/base64Decode.md +59 -0
- package/doc/sc/api/lib/crypto/functions/base64Encode.md +25 -0
- package/doc/sc/api/lib/crypto/functions/cipherDecrypt.md +49 -0
- package/doc/sc/api/lib/crypto/functions/cipherEncrypt.md +49 -0
- package/doc/sc/api/lib/crypto/functions/gcmDecrypt.md +71 -0
- package/doc/sc/api/lib/crypto/functions/gcmEncrypt.md +71 -0
- package/doc/sc/api/lib/crypto/functions/generateKeyPair.md +61 -0
- package/doc/sc/api/lib/crypto/functions/hashHmac.md +79 -0
- package/doc/sc/api/lib/crypto/functions/hashHmacFile.md +79 -0
- package/doc/sc/api/lib/crypto/functions/privateDecrypt.md +31 -0
- package/doc/sc/api/lib/crypto/functions/privateEncrypt.md +31 -0
- package/doc/sc/api/lib/crypto/functions/publicDecrypt.md +31 -0
- package/doc/sc/api/lib/crypto/functions/publicEncrypt.md +31 -0
- package/doc/sc/api/lib/crypto/functions/sign.md +83 -0
- package/doc/sc/api/lib/crypto/functions/sm4Decrypt.md +91 -0
- package/doc/sc/api/lib/crypto/functions/sm4Encrypt.md +91 -0
- package/doc/sc/api/lib/crypto/functions/uuid.md +25 -0
- package/doc/sc/api/lib/crypto/functions/verify.md +43 -0
- package/doc/sc/api/lib/crypto/index.md +40 -0
- package/doc/sc/api/lib/crypto/variables/AES_256_CBC.md +13 -0
- package/doc/sc/api/lib/crypto/variables/AES_256_CTR.md +13 -0
- package/doc/sc/api/lib/crypto/variables/AES_256_ECB.md +13 -0
- package/doc/sc/api/lib/crypto/variables/AES_256_GCM.md +13 -0
- package/doc/sc/api/lib/crypto/variables/SM4_CBC.md +11 -0
- package/doc/sc/api/lib/crypto/variables/SM4_CFB.md +13 -0
- package/doc/sc/api/lib/crypto/variables/SM4_ECB.md +13 -0
- package/doc/sc/api/lib/db/conn/classes/Connection.md +315 -0
- package/doc/sc/api/lib/db/conn/index.md +11 -0
- package/doc/sc/api/lib/db/enumerations/ESERVICE.md +27 -0
- package/doc/sc/api/lib/db/functions/get.md +37 -0
- package/doc/sc/api/lib/db/index.md +50 -0
- package/doc/sc/api/lib/db/interfaces/IData.md +57 -0
- package/doc/sc/api/lib/db/interfaces/IPacket.md +75 -0
- package/doc/sc/api/lib/db/pool/classes/Pool.md +143 -0
- package/doc/sc/api/lib/db/pool/functions/getConnectionList.md +17 -0
- package/doc/sc/api/lib/db/pool/index.md +19 -0
- package/doc/sc/api/lib/db/pool/interfaces/IConnectionInfo.md +91 -0
- package/doc/sc/api/lib/db/tran/classes/Transaction.md +137 -0
- package/doc/sc/api/lib/db/tran/index.md +11 -0
- package/doc/sc/api/lib/dns/classes/Dns.md +187 -0
- package/doc/sc/api/lib/dns/enumerations/ERECORDLINE.md +59 -0
- package/doc/sc/api/lib/dns/enumerations/ERECORDTYPE.md +67 -0
- package/doc/sc/api/lib/dns/enumerations/ESERVICE.md +27 -0
- package/doc/sc/api/lib/dns/functions/get.md +29 -0
- package/doc/sc/api/lib/dns/index.md +27 -0
- package/doc/sc/api/lib/dns/interfaces/IAddDomainRecord.md +27 -0
- package/doc/sc/api/lib/dns/interfaces/IDomainList.md +43 -0
- package/doc/sc/api/lib/dns/interfaces/IOptions.md +41 -0
- package/doc/sc/api/lib/fs/functions/chmod.md +31 -0
- package/doc/sc/api/lib/fs/functions/copyFile.md +31 -0
- package/doc/sc/api/lib/fs/functions/copyFolder.md +37 -0
- package/doc/sc/api/lib/fs/functions/createReadStream.md +31 -0
- package/doc/sc/api/lib/fs/functions/createWriteStream.md +31 -0
- package/doc/sc/api/lib/fs/functions/getContent.md +63 -0
- package/doc/sc/api/lib/fs/functions/isDir.md +25 -0
- package/doc/sc/api/lib/fs/functions/isFile.md +25 -0
- package/doc/sc/api/lib/fs/functions/mkdir.md +31 -0
- package/doc/sc/api/lib/fs/functions/pipe.md +39 -0
- package/doc/sc/api/lib/fs/functions/putContent.md +47 -0
- package/doc/sc/api/lib/fs/functions/readDir.md +29 -0
- package/doc/sc/api/lib/fs/functions/readLink.md +31 -0
- package/doc/sc/api/lib/fs/functions/readToResponse.md +43 -0
- package/doc/sc/api/lib/fs/functions/rename.md +31 -0
- package/doc/sc/api/lib/fs/functions/rmdir.md +25 -0
- package/doc/sc/api/lib/fs/functions/rmdirDeep.md +25 -0
- package/doc/sc/api/lib/fs/functions/stats.md +25 -0
- package/doc/sc/api/lib/fs/functions/symlink.md +37 -0
- package/doc/sc/api/lib/fs/functions/unlink.md +25 -0
- package/doc/sc/api/lib/fs/index.md +30 -0
- package/doc/sc/api/lib/kv/classes/Kv.md +1161 -0
- package/doc/sc/api/lib/kv/functions/get.md +41 -0
- package/doc/sc/api/lib/kv/index.md +20 -0
- package/doc/sc/api/lib/kv/interfaces/IConnectionInfo.md +43 -0
- package/doc/sc/api/lib/kv/interfaces/IZRangeOptions.md +52 -0
- package/doc/sc/api/lib/lan/functions/card.md +17 -0
- package/doc/sc/api/lib/lan/functions/scan.md +17 -0
- package/doc/sc/api/lib/lan/index.md +12 -0
- package/doc/sc/api/lib/lang/functions/getCodeByAccept.md +25 -0
- package/doc/sc/api/lib/lang/index.md +17 -0
- package/doc/sc/api/lib/lang/variables/codes.md +13 -0
- package/doc/sc/api/lib/lang/variables/map.md +13 -0
- package/doc/sc/api/lib/lang/variables/names.md +11 -0
- package/doc/sc/api/lib/net/formdata/classes/FormData.md +157 -0
- package/doc/sc/api/lib/net/formdata/index.md +15 -0
- package/doc/sc/api/lib/net/formdata/interfaces/IItem.md +55 -0
- package/doc/sc/api/lib/net/functions/buildCookieQuery.md +31 -0
- package/doc/sc/api/lib/net/functions/fetch.md +31 -0
- package/doc/sc/api/lib/net/functions/filterHeaders.md +37 -0
- package/doc/sc/api/lib/net/functions/get.md +31 -0
- package/doc/sc/api/lib/net/functions/getCa.md +17 -0
- package/doc/sc/api/lib/net/functions/getFormData.md +17 -0
- package/doc/sc/api/lib/net/functions/mproxy.md +38 -0
- package/doc/sc/api/lib/net/functions/mproxyData.md +25 -0
- package/doc/sc/api/lib/net/functions/open.md +23 -0
- package/doc/sc/api/lib/net/functions/post.md +37 -0
- package/doc/sc/api/lib/net/functions/postJson.md +37 -0
- package/doc/sc/api/lib/net/functions/postJsonResponseJson.md +39 -0
- package/doc/sc/api/lib/net/functions/request.md +33 -0
- package/doc/sc/api/lib/net/functions/resetCookieSession.md +25 -0
- package/doc/sc/api/lib/net/functions/rproxy.md +37 -0
- package/doc/sc/api/lib/net/functions/setCookie.md +63 -0
- package/doc/sc/api/lib/net/index.md +37 -0
- package/doc/sc/api/lib/net/interfaces/ICookie.md +69 -0
- package/doc/sc/api/lib/net/interfaces/IMproxyOptions.md +85 -0
- package/doc/sc/api/lib/net/interfaces/IRequestOptions.md +133 -0
- package/doc/sc/api/lib/net/interfaces/IRproxyOptions.md +107 -0
- package/doc/sc/api/lib/net/request/classes/Request.md +297 -0
- package/doc/sc/api/lib/net/request/index.md +11 -0
- package/doc/sc/api/lib/net/response/classes/Response.md +109 -0
- package/doc/sc/api/lib/net/response/index.md +11 -0
- package/doc/sc/api/lib/net/type-aliases/THttpHeaders.md +27 -0
- package/doc/sc/api/lib/s3/classes/S3.md +220 -0
- package/doc/sc/api/lib/s3/enumerations/ESERVICE.md +43 -0
- package/doc/sc/api/lib/s3/functions/get.md +29 -0
- package/doc/sc/api/lib/s3/index.md +23 -0
- package/doc/sc/api/lib/s3/interfaces/IOptions.md +71 -0
- package/doc/sc/api/lib/scan/classes/Scan.md +127 -0
- package/doc/sc/api/lib/scan/functions/get.md +33 -0
- package/doc/sc/api/lib/scan/functions/scanned.md +37 -0
- package/doc/sc/api/lib/scan/functions/setData.md +35 -0
- package/doc/sc/api/lib/scan/index.md +22 -0
- package/doc/sc/api/lib/scan/interfaces/IOptions.md +43 -0
- package/doc/sc/api/lib/scan/interfaces/IStaticOptions.md +35 -0
- package/doc/sc/api/lib/session/classes/Session.md +103 -0
- package/doc/sc/api/lib/session/index.md +15 -0
- package/doc/sc/api/lib/session/interfaces/IOptions.md +41 -0
- package/doc/sc/api/lib/socket/functions/rwebsocket.md +37 -0
- package/doc/sc/api/lib/socket/index.md +15 -0
- package/doc/sc/api/lib/socket/interfaces/IRwebsocketOptions.md +91 -0
- package/doc/sc/api/lib/sql/classes/Sql.md +791 -0
- package/doc/sc/api/lib/sql/enumerations/EJSON.md +61 -0
- package/doc/sc/api/lib/sql/enumerations/ESERVICE.md +27 -0
- package/doc/sc/api/lib/sql/functions/aoMix.md +25 -0
- package/doc/sc/api/lib/sql/functions/column.md +35 -0
- package/doc/sc/api/lib/sql/functions/format.md +37 -0
- package/doc/sc/api/lib/sql/functions/get.md +43 -0
- package/doc/sc/api/lib/sql/index.md +23 -0
- package/doc/sc/api/lib/ssh/classes/Connection.md +123 -0
- package/doc/sc/api/lib/ssh/functions/get.md +25 -0
- package/doc/sc/api/lib/ssh/index.md +19 -0
- package/doc/sc/api/lib/ssh/interfaces/IExtOptions.md +33 -0
- package/doc/sc/api/lib/ssh/sftp/classes/Connection.md +628 -0
- package/doc/sc/api/lib/ssh/sftp/index.md +11 -0
- package/doc/sc/api/lib/ssh/shell/classes/Connection.md +189 -0
- package/doc/sc/api/lib/ssh/shell/index.md +11 -0
- package/doc/sc/api/lib/text/functions/getFilename.md +25 -0
- package/doc/sc/api/lib/text/functions/htmlescape.md +25 -0
- package/doc/sc/api/lib/text/functions/int2str.md +42 -0
- package/doc/sc/api/lib/text/functions/isAscii.md +25 -0
- package/doc/sc/api/lib/text/functions/isDomain.md +27 -0
- package/doc/sc/api/lib/text/functions/isEMail.md +23 -0
- package/doc/sc/api/lib/text/functions/isFalsy.md +25 -0
- package/doc/sc/api/lib/text/functions/isIPv4.md +23 -0
- package/doc/sc/api/lib/text/functions/isIPv6.md +23 -0
- package/doc/sc/api/lib/text/functions/isIdCardCN.md +25 -0
- package/doc/sc/api/lib/text/functions/isPhoneCN.md +25 -0
- package/doc/sc/api/lib/text/functions/isRealPath.md +25 -0
- package/doc/sc/api/lib/text/functions/isTruthy.md +31 -0
- package/doc/sc/api/lib/text/functions/logicalOr.md +41 -0
- package/doc/sc/api/lib/text/functions/match.md +31 -0
- package/doc/sc/api/lib/text/functions/nlReplace.md +31 -0
- package/doc/sc/api/lib/text/functions/parseDomain.md +25 -0
- package/doc/sc/api/lib/text/functions/parseJson.md +25 -0
- package/doc/sc/api/lib/text/functions/parseUrl.md +23 -0
- package/doc/sc/api/lib/text/functions/queryParse.md +25 -0
- package/doc/sc/api/lib/text/functions/queryStringify.md +69 -0
- package/doc/sc/api/lib/text/functions/sizeFormat.md +31 -0
- package/doc/sc/api/lib/text/functions/str2int.md +36 -0
- package/doc/sc/api/lib/text/functions/stringifyBuffer.md +25 -0
- package/doc/sc/api/lib/text/functions/stringifyJson.md +31 -0
- package/doc/sc/api/lib/text/functions/stringifyResult.md +25 -0
- package/doc/sc/api/lib/text/functions/trimJson.md +23 -0
- package/doc/sc/api/lib/text/functions/urlAtom.md +25 -0
- package/doc/sc/api/lib/text/functions/urlResolve.md +31 -0
- package/doc/sc/api/lib/text/index.md +55 -0
- package/doc/sc/api/lib/text/interfaces/IDomain.md +43 -0
- package/doc/sc/api/lib/text/type-aliases/TFalsy.md +13 -0
- package/doc/sc/api/lib/text/variables/REGEXP_ASCII.md +13 -0
- package/doc/sc/api/lib/text/variables/REGEXP_DOMAIN.md +11 -0
- package/doc/sc/api/lib/text/variables/REGEXP_EMAIL.md +11 -0
- package/doc/sc/api/lib/text/variables/REGEXP_IPV4.md +11 -0
- package/doc/sc/api/lib/text/variables/REGEXP_IPV6.md +11 -0
- package/doc/sc/api/lib/time/classes/Time.md +125 -0
- package/doc/sc/api/lib/time/functions/format.md +37 -0
- package/doc/sc/api/lib/time/functions/get.md +27 -0
- package/doc/sc/api/lib/time/functions/isMs.md +25 -0
- package/doc/sc/api/lib/time/functions/stamp.md +31 -0
- package/doc/sc/api/lib/time/index.md +28 -0
- package/doc/sc/api/lib/time/interfaces/IOptions.md +29 -0
- package/doc/sc/api/lib/time/variables/DAY.md +13 -0
- package/doc/sc/api/lib/time/variables/HOUR.md +13 -0
- package/doc/sc/api/lib/time/variables/YEAR.md +13 -0
- package/doc/sc/api/lib/turnstile/enumerations/EFACTORY.md +27 -0
- package/doc/sc/api/lib/turnstile/functions/verify.md +35 -0
- package/doc/sc/api/lib/turnstile/index.md +15 -0
- package/doc/sc/api/lib/vector/classes/Vector.md +141 -0
- package/doc/sc/api/lib/vector/functions/get.md +25 -0
- package/doc/sc/api/lib/vector/index.md +19 -0
- package/doc/sc/api/lib/vector/interfaces/IOptions.md +61 -0
- package/doc/sc/api/lib/ws/classes/Socket.md +331 -0
- package/doc/sc/api/lib/ws/enumerations/EFrameReceiveMode.md +35 -0
- package/doc/sc/api/lib/ws/enumerations/EOpcode.md +59 -0
- package/doc/sc/api/lib/ws/functions/connect.md +31 -0
- package/doc/sc/api/lib/ws/functions/createServer.md +45 -0
- package/doc/sc/api/lib/ws/functions/mproxy.md +38 -0
- package/doc/sc/api/lib/ws/functions/rproxy.md +37 -0
- package/doc/sc/api/lib/ws/functions/rsocket.md +37 -0
- package/doc/sc/api/lib/ws/index.md +30 -0
- package/doc/sc/api/lib/ws/interfaces/IConnectOptions.md +95 -0
- package/doc/sc/api/lib/ws/interfaces/IMproxyOptions.md +87 -0
- package/doc/sc/api/lib/ws/interfaces/IRproxyOptions.md +105 -0
- package/doc/sc/api/lib/zip/classes/Zip.md +392 -0
- package/doc/sc/api/lib/zip/functions/get.md +25 -0
- package/doc/sc/api/lib/zip/index.md +29 -0
- package/doc/sc/api/lib/zip/interfaces/IZipInputByType.md +81 -0
- package/doc/sc/api/lib/zip/interfaces/IZipItem.md +65 -0
- package/doc/sc/api/lib/zip/interfaces/IZipMetadata.md +25 -0
- package/doc/sc/api/lib/zip/interfaces/IZipOutputByType.md +81 -0
- package/doc/sc/api/lib/zip/interfaces/IZipStats.md +49 -0
- package/doc/sc/api/lib/zip/type-aliases/TZipInputFileFormat.md +11 -0
- package/doc/sc/api/lib/zip/type-aliases/TZipInputType.md +11 -0
- package/doc/sc/api/lib/zip/type-aliases/TZipOutputType.md +11 -0
- package/doc/sc/api/lib/zlib/functions/brotliCompress.md +31 -0
- package/doc/sc/api/lib/zlib/functions/brotliDecompress.md +25 -0
- package/doc/sc/api/lib/zlib/functions/compress.md +37 -0
- package/doc/sc/api/lib/zlib/functions/createBrotliCompress.md +25 -0
- package/doc/sc/api/lib/zlib/functions/createBrotliDecompress.md +17 -0
- package/doc/sc/api/lib/zlib/functions/createCompress.md +31 -0
- package/doc/sc/api/lib/zlib/functions/createDecompress.md +25 -0
- package/doc/sc/api/lib/zlib/functions/createDeflate.md +25 -0
- package/doc/sc/api/lib/zlib/functions/createGunzip.md +17 -0
- package/doc/sc/api/lib/zlib/functions/createGzip.md +25 -0
- package/doc/sc/api/lib/zlib/functions/createInflate.md +17 -0
- package/doc/sc/api/lib/zlib/functions/decompress.md +31 -0
- package/doc/sc/api/lib/zlib/functions/deflate.md +31 -0
- package/doc/sc/api/lib/zlib/functions/gunzip.md +25 -0
- package/doc/sc/api/lib/zlib/functions/gzip.md +31 -0
- package/doc/sc/api/lib/zlib/functions/inflate.md +25 -0
- package/doc/sc/api/lib/zlib/index.md +31 -0
- package/doc/sc/api/lib/zlib/interfaces/ICompress.md +27 -0
- package/doc/sc/api/lib/zlib/interfaces/ICompressBuffer.md +27 -0
- package/doc/sc/api/main/index.md +7 -0
- package/doc/sc/api/sys/ctr/classes/Ctr.md +1242 -0
- package/doc/sc/api/sys/ctr/functions/clearLocaleData.md +17 -0
- package/doc/sc/api/sys/ctr/index.md +15 -0
- package/doc/sc/api/sys/mod/classes/Rows.md +165 -0
- package/doc/sc/api/sys/mod/classes/default.md +2175 -0
- package/doc/sc/api/sys/mod/index.md +21 -0
- package/doc/sc/api/sys/mod/interfaces/IModUnionItem.md +25 -0
- package/doc/sc/api/sys/mod/interfaces/IRows.md +57 -0
- package/doc/sc/api/sys/mod/type-aliases/TOnlyProperties.md +19 -0
- package/doc/sc/api/sys/route/functions/clearKebabConfigs.md +17 -0
- package/doc/sc/api/sys/route/functions/getFormData.md +47 -0
- package/doc/sc/api/sys/route/functions/getPost.md +25 -0
- package/doc/sc/api/sys/route/functions/run.md +83 -0
- package/doc/sc/api/sys/route/functions/unlinkUploadFiles.md +25 -0
- package/doc/sc/api/sys/route/functions/waitCtr.md +26 -0
- package/doc/sc/api/sys/route/index.md +16 -0
- package/doc/sc/quick-start.md +30 -0
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/ws](../index.md) / IConnectOptions
|
|
6
|
+
|
|
7
|
+
# Interface: IConnectOptions
|
|
8
|
+
|
|
9
|
+
Defined in: [lib/ws.ts:34](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L34)
|
|
10
|
+
|
|
11
|
+
请求的传入参数选项
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### cookie?
|
|
16
|
+
|
|
17
|
+
> `optional` **cookie**: `Record`\<`string`, [`ICookie`](../../net/interfaces/ICookie.md)\>
|
|
18
|
+
|
|
19
|
+
Defined in: [lib/ws.ts:42](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L42)
|
|
20
|
+
|
|
21
|
+
cookie 托管对象
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
### headers?
|
|
26
|
+
|
|
27
|
+
> `optional` **headers**: [`THttpHeaders`](../../net/type-aliases/THttpHeaders.md)
|
|
28
|
+
|
|
29
|
+
Defined in: [lib/ws.ts:40](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L40)
|
|
30
|
+
|
|
31
|
+
***
|
|
32
|
+
|
|
33
|
+
### hosts?
|
|
34
|
+
|
|
35
|
+
> `optional` **hosts**: `string` \| `Record`\<`string`, `string`\>
|
|
36
|
+
|
|
37
|
+
Defined in: [lib/ws.ts:38](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L38)
|
|
38
|
+
|
|
39
|
+
自定义 host 映射,如 {'www.maiyun.net': '127.0.0.1'},或全部映射到一个 host
|
|
40
|
+
|
|
41
|
+
***
|
|
42
|
+
|
|
43
|
+
### local?
|
|
44
|
+
|
|
45
|
+
> `optional` **local**: `string`
|
|
46
|
+
|
|
47
|
+
Defined in: [lib/ws.ts:39](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L39)
|
|
48
|
+
|
|
49
|
+
***
|
|
50
|
+
|
|
51
|
+
### masking?
|
|
52
|
+
|
|
53
|
+
> `optional` **masking**: `boolean`
|
|
54
|
+
|
|
55
|
+
Defined in: [lib/ws.ts:46](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L46)
|
|
56
|
+
|
|
57
|
+
加密模式,默认 true
|
|
58
|
+
|
|
59
|
+
***
|
|
60
|
+
|
|
61
|
+
### mode?
|
|
62
|
+
|
|
63
|
+
> `optional` **mode**: [`EFrameReceiveMode`](../enumerations/EFrameReceiveMode.md)
|
|
64
|
+
|
|
65
|
+
Defined in: [lib/ws.ts:44](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L44)
|
|
66
|
+
|
|
67
|
+
小帧模式,默认 false
|
|
68
|
+
|
|
69
|
+
***
|
|
70
|
+
|
|
71
|
+
### mproxy?
|
|
72
|
+
|
|
73
|
+
> `optional` **mproxy**: `object`
|
|
74
|
+
|
|
75
|
+
Defined in: [lib/ws.ts:48](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L48)
|
|
76
|
+
|
|
77
|
+
正向 mproxy 代理,url 如 wss://xxx/abc
|
|
78
|
+
|
|
79
|
+
#### auth
|
|
80
|
+
|
|
81
|
+
> **auth**: `string`
|
|
82
|
+
|
|
83
|
+
#### url
|
|
84
|
+
|
|
85
|
+
> **url**: `string`
|
|
86
|
+
|
|
87
|
+
***
|
|
88
|
+
|
|
89
|
+
### timeout?
|
|
90
|
+
|
|
91
|
+
> `optional` **timeout**: `number`
|
|
92
|
+
|
|
93
|
+
Defined in: [lib/ws.ts:36](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L36)
|
|
94
|
+
|
|
95
|
+
秒数
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/ws](../index.md) / IMproxyOptions
|
|
6
|
+
|
|
7
|
+
# Interface: IMproxyOptions
|
|
8
|
+
|
|
9
|
+
Defined in: [lib/ws.ts:55](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L55)
|
|
10
|
+
|
|
11
|
+
正向代理请求的传入参数选项
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### filter()?
|
|
16
|
+
|
|
17
|
+
> `optional` **filter**: (`h`) => `boolean`
|
|
18
|
+
|
|
19
|
+
Defined in: [lib/ws.ts:63](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L63)
|
|
20
|
+
|
|
21
|
+
过滤 header,返回 true 则留下
|
|
22
|
+
|
|
23
|
+
#### Parameters
|
|
24
|
+
|
|
25
|
+
##### h
|
|
26
|
+
|
|
27
|
+
`string`
|
|
28
|
+
|
|
29
|
+
#### Returns
|
|
30
|
+
|
|
31
|
+
`boolean`
|
|
32
|
+
|
|
33
|
+
***
|
|
34
|
+
|
|
35
|
+
### headers?
|
|
36
|
+
|
|
37
|
+
> `optional` **headers**: [`THttpHeaders`](../../net/type-aliases/THttpHeaders.md)
|
|
38
|
+
|
|
39
|
+
Defined in: [lib/ws.ts:61](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L61)
|
|
40
|
+
|
|
41
|
+
***
|
|
42
|
+
|
|
43
|
+
### hosts?
|
|
44
|
+
|
|
45
|
+
> `optional` **hosts**: `string` \| `Record`\<`string`, `string`\>
|
|
46
|
+
|
|
47
|
+
Defined in: [lib/ws.ts:59](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L59)
|
|
48
|
+
|
|
49
|
+
自定义 host 映射,如 {'www.maiyun.net': '127.0.0.1'},或全部映射到一个 host
|
|
50
|
+
|
|
51
|
+
***
|
|
52
|
+
|
|
53
|
+
### local?
|
|
54
|
+
|
|
55
|
+
> `optional` **local**: `string`
|
|
56
|
+
|
|
57
|
+
Defined in: [lib/ws.ts:60](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L60)
|
|
58
|
+
|
|
59
|
+
***
|
|
60
|
+
|
|
61
|
+
### masking?
|
|
62
|
+
|
|
63
|
+
> `optional` **masking**: `boolean`
|
|
64
|
+
|
|
65
|
+
Defined in: [lib/ws.ts:67](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L67)
|
|
66
|
+
|
|
67
|
+
加密模式,默认 true
|
|
68
|
+
|
|
69
|
+
***
|
|
70
|
+
|
|
71
|
+
### mode?
|
|
72
|
+
|
|
73
|
+
> `optional` **mode**: [`EFrameReceiveMode`](../enumerations/EFrameReceiveMode.md)
|
|
74
|
+
|
|
75
|
+
Defined in: [lib/ws.ts:65](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L65)
|
|
76
|
+
|
|
77
|
+
小帧模式,默认 false
|
|
78
|
+
|
|
79
|
+
***
|
|
80
|
+
|
|
81
|
+
### timeout?
|
|
82
|
+
|
|
83
|
+
> `optional` **timeout**: `number`
|
|
84
|
+
|
|
85
|
+
Defined in: [lib/ws.ts:57](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L57)
|
|
86
|
+
|
|
87
|
+
秒数
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/ws](../index.md) / IRproxyOptions
|
|
6
|
+
|
|
7
|
+
# Interface: IRproxyOptions
|
|
8
|
+
|
|
9
|
+
Defined in: [lib/ws.ts:71](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L71)
|
|
10
|
+
|
|
11
|
+
反向代理请求的传入参数选项
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### filter()?
|
|
16
|
+
|
|
17
|
+
> `optional` **filter**: (`h`) => `boolean`
|
|
18
|
+
|
|
19
|
+
Defined in: [lib/ws.ts:79](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L79)
|
|
20
|
+
|
|
21
|
+
过滤 header,返回 true 则留下
|
|
22
|
+
|
|
23
|
+
#### Parameters
|
|
24
|
+
|
|
25
|
+
##### h
|
|
26
|
+
|
|
27
|
+
`string`
|
|
28
|
+
|
|
29
|
+
#### Returns
|
|
30
|
+
|
|
31
|
+
`boolean`
|
|
32
|
+
|
|
33
|
+
***
|
|
34
|
+
|
|
35
|
+
### headers?
|
|
36
|
+
|
|
37
|
+
> `optional` **headers**: [`THttpHeaders`](../../net/type-aliases/THttpHeaders.md)
|
|
38
|
+
|
|
39
|
+
Defined in: [lib/ws.ts:77](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L77)
|
|
40
|
+
|
|
41
|
+
***
|
|
42
|
+
|
|
43
|
+
### hosts?
|
|
44
|
+
|
|
45
|
+
> `optional` **hosts**: `string` \| `Record`\<`string`, `string`\>
|
|
46
|
+
|
|
47
|
+
Defined in: [lib/ws.ts:75](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L75)
|
|
48
|
+
|
|
49
|
+
自定义 host 映射,如 {'www.maiyun.net': '127.0.0.1'},或全部映射到一个 host
|
|
50
|
+
|
|
51
|
+
***
|
|
52
|
+
|
|
53
|
+
### local?
|
|
54
|
+
|
|
55
|
+
> `optional` **local**: `string`
|
|
56
|
+
|
|
57
|
+
Defined in: [lib/ws.ts:76](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L76)
|
|
58
|
+
|
|
59
|
+
***
|
|
60
|
+
|
|
61
|
+
### masking?
|
|
62
|
+
|
|
63
|
+
> `optional` **masking**: `boolean`
|
|
64
|
+
|
|
65
|
+
Defined in: [lib/ws.ts:83](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L83)
|
|
66
|
+
|
|
67
|
+
加密模式,默认 true
|
|
68
|
+
|
|
69
|
+
***
|
|
70
|
+
|
|
71
|
+
### mode?
|
|
72
|
+
|
|
73
|
+
> `optional` **mode**: [`EFrameReceiveMode`](../enumerations/EFrameReceiveMode.md)
|
|
74
|
+
|
|
75
|
+
Defined in: [lib/ws.ts:81](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L81)
|
|
76
|
+
|
|
77
|
+
小帧模式,默认 false
|
|
78
|
+
|
|
79
|
+
***
|
|
80
|
+
|
|
81
|
+
### mproxy?
|
|
82
|
+
|
|
83
|
+
> `optional` **mproxy**: `object`
|
|
84
|
+
|
|
85
|
+
Defined in: [lib/ws.ts:85](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L85)
|
|
86
|
+
|
|
87
|
+
正向 mproxy 代理,url 如 wss://xxx/abc
|
|
88
|
+
|
|
89
|
+
#### auth
|
|
90
|
+
|
|
91
|
+
> **auth**: `string`
|
|
92
|
+
|
|
93
|
+
#### url
|
|
94
|
+
|
|
95
|
+
> **url**: `string`
|
|
96
|
+
|
|
97
|
+
***
|
|
98
|
+
|
|
99
|
+
### timeout?
|
|
100
|
+
|
|
101
|
+
> `optional` **timeout**: `number`
|
|
102
|
+
|
|
103
|
+
Defined in: [lib/ws.ts:73](https://github.com/maiyunnet/kebab/blob/master/lib/ws.ts#L73)
|
|
104
|
+
|
|
105
|
+
秒数
|
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/zip](../index.md) / Zip
|
|
6
|
+
|
|
7
|
+
# Class: Zip
|
|
8
|
+
|
|
9
|
+
Defined in: [lib/zip.ts:9](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L9)
|
|
10
|
+
|
|
11
|
+
本库主要用于读取 zip,请尽量不要用来写入 zip,尤其是大文件 zip
|
|
12
|
+
|
|
13
|
+
## Constructors
|
|
14
|
+
|
|
15
|
+
### Constructor
|
|
16
|
+
|
|
17
|
+
> **new Zip**(`zip`): `Zip`
|
|
18
|
+
|
|
19
|
+
Defined in: [lib/zip.ts:17](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L17)
|
|
20
|
+
|
|
21
|
+
#### Parameters
|
|
22
|
+
|
|
23
|
+
##### zip
|
|
24
|
+
|
|
25
|
+
`JSZip`
|
|
26
|
+
|
|
27
|
+
#### Returns
|
|
28
|
+
|
|
29
|
+
`Zip`
|
|
30
|
+
|
|
31
|
+
## Methods
|
|
32
|
+
|
|
33
|
+
### cd()
|
|
34
|
+
|
|
35
|
+
> **cd**(`dir`): `string`
|
|
36
|
+
|
|
37
|
+
Defined in: [lib/zip.ts:338](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L338)
|
|
38
|
+
|
|
39
|
+
进入一个目录(不存在也能进入,需要自行判断)
|
|
40
|
+
返回进入后的路径值
|
|
41
|
+
|
|
42
|
+
#### Parameters
|
|
43
|
+
|
|
44
|
+
##### dir
|
|
45
|
+
|
|
46
|
+
`string`
|
|
47
|
+
|
|
48
|
+
相对路径或绝对路径
|
|
49
|
+
|
|
50
|
+
#### Returns
|
|
51
|
+
|
|
52
|
+
`string`
|
|
53
|
+
|
|
54
|
+
***
|
|
55
|
+
|
|
56
|
+
### generate()
|
|
57
|
+
|
|
58
|
+
> **generate**\<`T`\>(`options`): `Promise`\<[`IZipOutputByType`](../interfaces/IZipOutputByType.md)\[`T`\]\>
|
|
59
|
+
|
|
60
|
+
Defined in: [lib/zip.ts:350](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L350)
|
|
61
|
+
|
|
62
|
+
打包 zip
|
|
63
|
+
|
|
64
|
+
#### Type Parameters
|
|
65
|
+
|
|
66
|
+
##### T
|
|
67
|
+
|
|
68
|
+
`T` *extends* keyof [`IZipOutputByType`](../interfaces/IZipOutputByType.md)
|
|
69
|
+
|
|
70
|
+
#### Parameters
|
|
71
|
+
|
|
72
|
+
##### options
|
|
73
|
+
|
|
74
|
+
选项
|
|
75
|
+
|
|
76
|
+
###### level?
|
|
77
|
+
|
|
78
|
+
`number`
|
|
79
|
+
|
|
80
|
+
###### onUpdate?
|
|
81
|
+
|
|
82
|
+
(`percent`, `currentFile`) => `void`
|
|
83
|
+
|
|
84
|
+
###### type?
|
|
85
|
+
|
|
86
|
+
`T`
|
|
87
|
+
|
|
88
|
+
#### Returns
|
|
89
|
+
|
|
90
|
+
`Promise`\<[`IZipOutputByType`](../interfaces/IZipOutputByType.md)\[`T`\]\>
|
|
91
|
+
|
|
92
|
+
***
|
|
93
|
+
|
|
94
|
+
### getContent()
|
|
95
|
+
|
|
96
|
+
读取完整文件
|
|
97
|
+
|
|
98
|
+
#### Param
|
|
99
|
+
|
|
100
|
+
文件路径
|
|
101
|
+
|
|
102
|
+
#### Param
|
|
103
|
+
|
|
104
|
+
返回类型
|
|
105
|
+
|
|
106
|
+
#### Call Signature
|
|
107
|
+
|
|
108
|
+
> **getContent**(`path`): `Promise`\<`string` \| `null`\>
|
|
109
|
+
|
|
110
|
+
Defined in: [lib/zip.ts:22](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L22)
|
|
111
|
+
|
|
112
|
+
##### Parameters
|
|
113
|
+
|
|
114
|
+
###### path
|
|
115
|
+
|
|
116
|
+
`string`
|
|
117
|
+
|
|
118
|
+
##### Returns
|
|
119
|
+
|
|
120
|
+
`Promise`\<`string` \| `null`\>
|
|
121
|
+
|
|
122
|
+
#### Call Signature
|
|
123
|
+
|
|
124
|
+
> **getContent**\<`T`\>(`path`, `type`): `Promise`\<[`IZipOutputByType`](../interfaces/IZipOutputByType.md)\[`T`\] \| `null`\>
|
|
125
|
+
|
|
126
|
+
Defined in: [lib/zip.ts:23](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L23)
|
|
127
|
+
|
|
128
|
+
##### Type Parameters
|
|
129
|
+
|
|
130
|
+
###### T
|
|
131
|
+
|
|
132
|
+
`T` *extends* keyof [`IZipOutputByType`](../interfaces/IZipOutputByType.md)
|
|
133
|
+
|
|
134
|
+
##### Parameters
|
|
135
|
+
|
|
136
|
+
###### path
|
|
137
|
+
|
|
138
|
+
`string`
|
|
139
|
+
|
|
140
|
+
###### type
|
|
141
|
+
|
|
142
|
+
`T`
|
|
143
|
+
|
|
144
|
+
##### Returns
|
|
145
|
+
|
|
146
|
+
`Promise`\<[`IZipOutputByType`](../interfaces/IZipOutputByType.md)\[`T`\] \| `null`\>
|
|
147
|
+
|
|
148
|
+
***
|
|
149
|
+
|
|
150
|
+
### getList()
|
|
151
|
+
|
|
152
|
+
> **getList**(): `Promise`\<`Record`\<`string`, `string` \| `Buffer`\<`ArrayBufferLike`\>\>\>
|
|
153
|
+
|
|
154
|
+
Defined in: [lib/zip.ts:375](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L375)
|
|
155
|
+
|
|
156
|
+
获取 path 和 string/Buffer 对应的文件列表
|
|
157
|
+
|
|
158
|
+
#### Returns
|
|
159
|
+
|
|
160
|
+
`Promise`\<`Record`\<`string`, `string` \| `Buffer`\<`ArrayBufferLike`\>\>\>
|
|
161
|
+
|
|
162
|
+
***
|
|
163
|
+
|
|
164
|
+
### isDir()
|
|
165
|
+
|
|
166
|
+
> **isDir**(`path`): `false` \| [`IZipStats`](../interfaces/IZipStats.md)
|
|
167
|
+
|
|
168
|
+
Defined in: [lib/zip.ts:134](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L134)
|
|
169
|
+
|
|
170
|
+
判断是否是目录或目录是否存在,是的话返回 stats
|
|
171
|
+
|
|
172
|
+
#### Parameters
|
|
173
|
+
|
|
174
|
+
##### path
|
|
175
|
+
|
|
176
|
+
`string`
|
|
177
|
+
|
|
178
|
+
判断路径
|
|
179
|
+
|
|
180
|
+
#### Returns
|
|
181
|
+
|
|
182
|
+
`false` \| [`IZipStats`](../interfaces/IZipStats.md)
|
|
183
|
+
|
|
184
|
+
***
|
|
185
|
+
|
|
186
|
+
### isFile()
|
|
187
|
+
|
|
188
|
+
> **isFile**(`path`): `false` \| [`IZipStats`](../interfaces/IZipStats.md)
|
|
189
|
+
|
|
190
|
+
Defined in: [lib/zip.ts:146](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L146)
|
|
191
|
+
|
|
192
|
+
判断是否是文件或文件是否存在,是的话返回 stats
|
|
193
|
+
|
|
194
|
+
#### Parameters
|
|
195
|
+
|
|
196
|
+
##### path
|
|
197
|
+
|
|
198
|
+
`string`
|
|
199
|
+
|
|
200
|
+
判断路径
|
|
201
|
+
|
|
202
|
+
#### Returns
|
|
203
|
+
|
|
204
|
+
`false` \| [`IZipStats`](../interfaces/IZipStats.md)
|
|
205
|
+
|
|
206
|
+
***
|
|
207
|
+
|
|
208
|
+
### putContent()
|
|
209
|
+
|
|
210
|
+
> **putContent**\<`T`\>(`path`, `data`, `options`): `void`
|
|
211
|
+
|
|
212
|
+
Defined in: [lib/zip.ts:51](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L51)
|
|
213
|
+
|
|
214
|
+
写入文件内容
|
|
215
|
+
|
|
216
|
+
#### Type Parameters
|
|
217
|
+
|
|
218
|
+
##### T
|
|
219
|
+
|
|
220
|
+
`T` *extends* keyof [`IZipInputByType`](../interfaces/IZipInputByType.md)
|
|
221
|
+
|
|
222
|
+
#### Parameters
|
|
223
|
+
|
|
224
|
+
##### path
|
|
225
|
+
|
|
226
|
+
`string`
|
|
227
|
+
|
|
228
|
+
文件路径
|
|
229
|
+
|
|
230
|
+
##### data
|
|
231
|
+
|
|
232
|
+
[`IZipInputByType`](../interfaces/IZipInputByType.md)\[`T`\]
|
|
233
|
+
|
|
234
|
+
要写入的内容
|
|
235
|
+
|
|
236
|
+
##### options
|
|
237
|
+
|
|
238
|
+
选项
|
|
239
|
+
|
|
240
|
+
###### base64?
|
|
241
|
+
|
|
242
|
+
`boolean`
|
|
243
|
+
|
|
244
|
+
###### binary?
|
|
245
|
+
|
|
246
|
+
`boolean`
|
|
247
|
+
|
|
248
|
+
###### date?
|
|
249
|
+
|
|
250
|
+
`Date`
|
|
251
|
+
|
|
252
|
+
#### Returns
|
|
253
|
+
|
|
254
|
+
`void`
|
|
255
|
+
|
|
256
|
+
***
|
|
257
|
+
|
|
258
|
+
### pwd()
|
|
259
|
+
|
|
260
|
+
> **pwd**(): `string`
|
|
261
|
+
|
|
262
|
+
Defined in: [lib/zip.ts:329](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L329)
|
|
263
|
+
|
|
264
|
+
获取当前目录,末尾不带 /
|
|
265
|
+
|
|
266
|
+
#### Returns
|
|
267
|
+
|
|
268
|
+
`string`
|
|
269
|
+
|
|
270
|
+
string
|
|
271
|
+
|
|
272
|
+
***
|
|
273
|
+
|
|
274
|
+
### readDir()
|
|
275
|
+
|
|
276
|
+
获取文件夹下文件列表
|
|
277
|
+
|
|
278
|
+
#### Param
|
|
279
|
+
|
|
280
|
+
文件夹路径
|
|
281
|
+
|
|
282
|
+
#### Param
|
|
283
|
+
|
|
284
|
+
选项
|
|
285
|
+
|
|
286
|
+
#### Call Signature
|
|
287
|
+
|
|
288
|
+
> **readDir**(`path?`, `opt?`): [`IZipItem`](../interfaces/IZipItem.md)[]
|
|
289
|
+
|
|
290
|
+
Defined in: [lib/zip.ts:155](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L155)
|
|
291
|
+
|
|
292
|
+
读取目录,hasChildren: false, hasDir: true, pathAsKey: false
|
|
293
|
+
|
|
294
|
+
##### Parameters
|
|
295
|
+
|
|
296
|
+
###### path?
|
|
297
|
+
|
|
298
|
+
`string`
|
|
299
|
+
|
|
300
|
+
###### opt?
|
|
301
|
+
|
|
302
|
+
###### hasChildren?
|
|
303
|
+
|
|
304
|
+
`boolean`
|
|
305
|
+
|
|
306
|
+
###### hasDir?
|
|
307
|
+
|
|
308
|
+
`boolean`
|
|
309
|
+
|
|
310
|
+
###### pathAsKey?
|
|
311
|
+
|
|
312
|
+
`false`
|
|
313
|
+
|
|
314
|
+
##### Returns
|
|
315
|
+
|
|
316
|
+
[`IZipItem`](../interfaces/IZipItem.md)[]
|
|
317
|
+
|
|
318
|
+
#### Call Signature
|
|
319
|
+
|
|
320
|
+
> **readDir**(`path?`, `opt?`): `Record`\<`string`, [`IZipItem`](../interfaces/IZipItem.md)\>
|
|
321
|
+
|
|
322
|
+
Defined in: [lib/zip.ts:156](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L156)
|
|
323
|
+
|
|
324
|
+
读取目录,hasChildren: false, hasDir: true, pathAsKey: false
|
|
325
|
+
|
|
326
|
+
##### Parameters
|
|
327
|
+
|
|
328
|
+
###### path?
|
|
329
|
+
|
|
330
|
+
`string`
|
|
331
|
+
|
|
332
|
+
###### opt?
|
|
333
|
+
|
|
334
|
+
###### hasChildren?
|
|
335
|
+
|
|
336
|
+
`boolean`
|
|
337
|
+
|
|
338
|
+
###### hasDir?
|
|
339
|
+
|
|
340
|
+
`boolean`
|
|
341
|
+
|
|
342
|
+
###### pathAsKey
|
|
343
|
+
|
|
344
|
+
`true`
|
|
345
|
+
|
|
346
|
+
##### Returns
|
|
347
|
+
|
|
348
|
+
`Record`\<`string`, [`IZipItem`](../interfaces/IZipItem.md)\>
|
|
349
|
+
|
|
350
|
+
***
|
|
351
|
+
|
|
352
|
+
### stats()
|
|
353
|
+
|
|
354
|
+
> **stats**(`path`): [`IZipStats`](../interfaces/IZipStats.md) \| `null`
|
|
355
|
+
|
|
356
|
+
Defined in: [lib/zip.ts:75](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L75)
|
|
357
|
+
|
|
358
|
+
获取对象是否存在,存在则返回 stats 对象,否则返回 null
|
|
359
|
+
|
|
360
|
+
#### Parameters
|
|
361
|
+
|
|
362
|
+
##### path
|
|
363
|
+
|
|
364
|
+
`string`
|
|
365
|
+
|
|
366
|
+
对象路径
|
|
367
|
+
|
|
368
|
+
#### Returns
|
|
369
|
+
|
|
370
|
+
[`IZipStats`](../interfaces/IZipStats.md) \| `null`
|
|
371
|
+
|
|
372
|
+
***
|
|
373
|
+
|
|
374
|
+
### unlink()
|
|
375
|
+
|
|
376
|
+
> **unlink**(`path`): `void`
|
|
377
|
+
|
|
378
|
+
Defined in: [lib/zip.ts:65](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L65)
|
|
379
|
+
|
|
380
|
+
删除一个文件/文件夹(深度删除)
|
|
381
|
+
|
|
382
|
+
#### Parameters
|
|
383
|
+
|
|
384
|
+
##### path
|
|
385
|
+
|
|
386
|
+
`string`
|
|
387
|
+
|
|
388
|
+
要删除的文件路径
|
|
389
|
+
|
|
390
|
+
#### Returns
|
|
391
|
+
|
|
392
|
+
`void`
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/zip](../index.md) / get
|
|
6
|
+
|
|
7
|
+
# Function: get()
|
|
8
|
+
|
|
9
|
+
> **get**(`data?`): `Promise`\<[`Zip`](../classes/Zip.md) \| `null`\>
|
|
10
|
+
|
|
11
|
+
Defined in: [lib/zip.ts:428](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L428)
|
|
12
|
+
|
|
13
|
+
获取 zip 对象
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
### data?
|
|
18
|
+
|
|
19
|
+
[`TZipInputFileFormat`](../type-aliases/TZipInputFileFormat.md)
|
|
20
|
+
|
|
21
|
+
对象数据
|
|
22
|
+
|
|
23
|
+
## Returns
|
|
24
|
+
|
|
25
|
+
`Promise`\<[`Zip`](../classes/Zip.md) \| `null`\>
|