@maiyunnet/kebab 7.6.1 → 7.6.2
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/kebab-rag.md +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/doc/README.sc.md +0 -201
- package/doc/README.tc.md +0 -203
- package/doc/icon.png +0 -0
- package/doc/sc/api/index/index.md +0 -47
- package/doc/sc/api/index/interfaces/IConfig.md +0 -165
- package/doc/sc/api/index/interfaces/IConfigAi.md +0 -29
- package/doc/sc/api/index/interfaces/IConfigConst.md +0 -201
- package/doc/sc/api/index/interfaces/IConfigDb.md +0 -59
- package/doc/sc/api/index/interfaces/IConfigDns.md +0 -27
- package/doc/sc/api/index/interfaces/IConfigJwt.md +0 -51
- package/doc/sc/api/index/interfaces/IConfigKv.md +0 -59
- package/doc/sc/api/index/interfaces/IConfigLang.md +0 -27
- package/doc/sc/api/index/interfaces/IConfigS3.md +0 -53
- package/doc/sc/api/index/interfaces/IConfigSql.md +0 -19
- package/doc/sc/api/index/interfaces/IConfigTurnstile.md +0 -51
- package/doc/sc/api/index/interfaces/IConfigVector.md +0 -51
- package/doc/sc/api/index/interfaces/IPostFile.md +0 -43
- package/doc/sc/api/index/interfaces/IUrlParse.md +0 -97
- package/doc/sc/api/index/interfaces/IVhost.md +0 -43
- package/doc/sc/api/index/type-aliases/DbValue.md +0 -13
- package/doc/sc/api/index/type-aliases/Json.md +0 -13
- package/doc/sc/api/index/variables/CERT_CWD.md +0 -11
- package/doc/sc/api/index/variables/CONF_CWD.md +0 -11
- package/doc/sc/api/index/variables/FTMP_CWD.md +0 -11
- package/doc/sc/api/index/variables/IND_CWD.md +0 -11
- package/doc/sc/api/index/variables/LIB_CWD.md +0 -11
- package/doc/sc/api/index/variables/LIB_PATH.md +0 -11
- package/doc/sc/api/index/variables/LOG_CWD.md +0 -11
- package/doc/sc/api/index/variables/MOD_CWD.md +0 -11
- package/doc/sc/api/index/variables/ROOT_CWD.md +0 -13
- package/doc/sc/api/index/variables/ROOT_PATH.md +0 -13
- package/doc/sc/api/index/variables/SYS_PATH.md +0 -11
- package/doc/sc/api/index/variables/VER.md +0 -13
- package/doc/sc/api/index/variables/VHOST_CWD.md +0 -11
- package/doc/sc/api/index/variables/WWW_CWD.md +0 -11
- package/doc/sc/api/index.md +0 -48
- package/doc/sc/api/lib/ai/classes/Ai.md +0 -103
- package/doc/sc/api/lib/ai/enumerations/ESERVICE.md +0 -61
- package/doc/sc/api/lib/ai/functions/get.md +0 -29
- package/doc/sc/api/lib/ai/index.md +0 -23
- package/doc/sc/api/lib/ai/interfaces/IOptions.md +0 -65
- package/doc/sc/api/lib/buffer/classes/Reader.md +0 -177
- package/doc/sc/api/lib/buffer/classes/Writer.md +0 -147
- package/doc/sc/api/lib/buffer/functions/getReader.md +0 -25
- package/doc/sc/api/lib/buffer/functions/getWriter.md +0 -25
- package/doc/sc/api/lib/buffer/index.md +0 -17
- package/doc/sc/api/lib/captcha/classes/Captcha.md +0 -79
- package/doc/sc/api/lib/captcha/functions/get.md +0 -37
- package/doc/sc/api/lib/captcha/index.md +0 -15
- package/doc/sc/api/lib/consistent/classes/Consistent.md +0 -135
- package/doc/sc/api/lib/consistent/functions/addToCircle.md +0 -37
- package/doc/sc/api/lib/consistent/functions/fast.md +0 -37
- package/doc/sc/api/lib/consistent/functions/findInCircle.md +0 -37
- package/doc/sc/api/lib/consistent/functions/get.md +0 -21
- package/doc/sc/api/lib/consistent/functions/getRange.md +0 -37
- package/doc/sc/api/lib/consistent/functions/hash.md +0 -25
- package/doc/sc/api/lib/consistent/index.md +0 -20
- package/doc/sc/api/lib/core/functions/checkType.md +0 -37
- package/doc/sc/api/lib/core/functions/clone.md +0 -31
- package/doc/sc/api/lib/core/functions/convert62.md +0 -25
- package/doc/sc/api/lib/core/functions/debug.md +0 -31
- package/doc/sc/api/lib/core/functions/display.md +0 -31
- package/doc/sc/api/lib/core/functions/emptyObject.md +0 -31
- package/doc/sc/api/lib/core/functions/exec.md +0 -31
- package/doc/sc/api/lib/core/functions/getLog.md +0 -71
- package/doc/sc/api/lib/core/functions/ip.md +0 -27
- package/doc/sc/api/lib/core/functions/log.md +0 -37
- package/doc/sc/api/lib/core/functions/ls.md +0 -39
- package/doc/sc/api/lib/core/functions/muid.md +0 -59
- package/doc/sc/api/lib/core/functions/objectSort.md +0 -31
- package/doc/sc/api/lib/core/functions/passThroughAppend.md +0 -37
- package/doc/sc/api/lib/core/functions/purify.md +0 -25
- package/doc/sc/api/lib/core/functions/rand.md +0 -37
- package/doc/sc/api/lib/core/functions/random.md +0 -37
- package/doc/sc/api/lib/core/functions/realIP.md +0 -29
- package/doc/sc/api/lib/core/functions/removeGlobal.md +0 -31
- package/doc/sc/api/lib/core/functions/sendNpm.md +0 -31
- package/doc/sc/api/lib/core/functions/sendPm2.md +0 -37
- package/doc/sc/api/lib/core/functions/sendReload.md +0 -24
- package/doc/sc/api/lib/core/functions/sendRestart.md +0 -24
- package/doc/sc/api/lib/core/functions/setCookie.md +0 -43
- package/doc/sc/api/lib/core/functions/setGlobal.md +0 -37
- package/doc/sc/api/lib/core/functions/sleep.md +0 -25
- package/doc/sc/api/lib/core/functions/unconvert62.md +0 -25
- package/doc/sc/api/lib/core/functions/updateCode.md +0 -49
- package/doc/sc/api/lib/core/functions/write.md +0 -31
- package/doc/sc/api/lib/core/functions/writeEventStreamHead.md +0 -21
- package/doc/sc/api/lib/core/functions/writeHead.md +0 -37
- package/doc/sc/api/lib/core/index.md +0 -66
- package/doc/sc/api/lib/core/interfaces/ICookieOptions.md +0 -59
- package/doc/sc/api/lib/core/interfaces/ILogOptions.md +0 -75
- package/doc/sc/api/lib/core/type-aliases/TPm2Action.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_L.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_LN.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_LU.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_LUN.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_LUNS.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_N.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_U.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_UN.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_V.md +0 -13
- package/doc/sc/api/lib/core/variables/REAL_IP_CF.md +0 -13
- package/doc/sc/api/lib/core/variables/REAL_IP_X.md +0 -13
- package/doc/sc/api/lib/core/variables/global.md +0 -13
- package/doc/sc/api/lib/core/variables/globalConfig.md +0 -47
- package/doc/sc/api/lib/cron/functions/getRegulars.md +0 -17
- package/doc/sc/api/lib/cron/functions/regular.md +0 -31
- package/doc/sc/api/lib/cron/index.md +0 -17
- package/doc/sc/api/lib/cron/interfaces/IRegular.md +0 -59
- package/doc/sc/api/lib/cron/interfaces/IRegularData.md +0 -101
- package/doc/sc/api/lib/crypto/functions/aesDecrypt.md +0 -91
- package/doc/sc/api/lib/crypto/functions/aesEncrypt.md +0 -95
- package/doc/sc/api/lib/crypto/functions/base64Decode.md +0 -59
- package/doc/sc/api/lib/crypto/functions/base64Encode.md +0 -25
- package/doc/sc/api/lib/crypto/functions/cipherDecrypt.md +0 -49
- package/doc/sc/api/lib/crypto/functions/cipherEncrypt.md +0 -49
- package/doc/sc/api/lib/crypto/functions/gcmDecrypt.md +0 -71
- package/doc/sc/api/lib/crypto/functions/gcmEncrypt.md +0 -71
- package/doc/sc/api/lib/crypto/functions/generateKeyPair.md +0 -61
- package/doc/sc/api/lib/crypto/functions/hashHmac.md +0 -79
- package/doc/sc/api/lib/crypto/functions/hashHmacFile.md +0 -79
- package/doc/sc/api/lib/crypto/functions/privateDecrypt.md +0 -31
- package/doc/sc/api/lib/crypto/functions/privateEncrypt.md +0 -31
- package/doc/sc/api/lib/crypto/functions/publicDecrypt.md +0 -31
- package/doc/sc/api/lib/crypto/functions/publicEncrypt.md +0 -31
- package/doc/sc/api/lib/crypto/functions/sign.md +0 -83
- package/doc/sc/api/lib/crypto/functions/sm4Decrypt.md +0 -91
- package/doc/sc/api/lib/crypto/functions/sm4Encrypt.md +0 -91
- package/doc/sc/api/lib/crypto/functions/uuid.md +0 -25
- package/doc/sc/api/lib/crypto/functions/verify.md +0 -43
- package/doc/sc/api/lib/crypto/index.md +0 -40
- package/doc/sc/api/lib/crypto/variables/AES_256_CBC.md +0 -13
- package/doc/sc/api/lib/crypto/variables/AES_256_CTR.md +0 -13
- package/doc/sc/api/lib/crypto/variables/AES_256_ECB.md +0 -13
- package/doc/sc/api/lib/crypto/variables/AES_256_GCM.md +0 -13
- package/doc/sc/api/lib/crypto/variables/SM4_CBC.md +0 -11
- package/doc/sc/api/lib/crypto/variables/SM4_CFB.md +0 -13
- package/doc/sc/api/lib/crypto/variables/SM4_ECB.md +0 -13
- package/doc/sc/api/lib/db/conn/classes/Connection.md +0 -315
- package/doc/sc/api/lib/db/conn/index.md +0 -11
- package/doc/sc/api/lib/db/enumerations/ESERVICE.md +0 -27
- package/doc/sc/api/lib/db/functions/get.md +0 -37
- package/doc/sc/api/lib/db/index.md +0 -50
- package/doc/sc/api/lib/db/interfaces/IData.md +0 -57
- package/doc/sc/api/lib/db/interfaces/IPacket.md +0 -75
- package/doc/sc/api/lib/db/pool/classes/Pool.md +0 -143
- package/doc/sc/api/lib/db/pool/functions/getConnectionList.md +0 -17
- package/doc/sc/api/lib/db/pool/index.md +0 -19
- package/doc/sc/api/lib/db/pool/interfaces/IConnectionInfo.md +0 -91
- package/doc/sc/api/lib/db/tran/classes/Transaction.md +0 -137
- package/doc/sc/api/lib/db/tran/index.md +0 -11
- package/doc/sc/api/lib/dns/classes/Dns.md +0 -187
- package/doc/sc/api/lib/dns/enumerations/ERECORDLINE.md +0 -59
- package/doc/sc/api/lib/dns/enumerations/ERECORDTYPE.md +0 -67
- package/doc/sc/api/lib/dns/enumerations/ESERVICE.md +0 -27
- package/doc/sc/api/lib/dns/functions/get.md +0 -29
- package/doc/sc/api/lib/dns/index.md +0 -27
- package/doc/sc/api/lib/dns/interfaces/IAddDomainRecord.md +0 -27
- package/doc/sc/api/lib/dns/interfaces/IDomainList.md +0 -43
- package/doc/sc/api/lib/dns/interfaces/IOptions.md +0 -41
- package/doc/sc/api/lib/fs/functions/chmod.md +0 -31
- package/doc/sc/api/lib/fs/functions/copyFile.md +0 -31
- package/doc/sc/api/lib/fs/functions/copyFolder.md +0 -37
- package/doc/sc/api/lib/fs/functions/createReadStream.md +0 -31
- package/doc/sc/api/lib/fs/functions/createWriteStream.md +0 -31
- package/doc/sc/api/lib/fs/functions/getContent.md +0 -63
- package/doc/sc/api/lib/fs/functions/isDir.md +0 -25
- package/doc/sc/api/lib/fs/functions/isFile.md +0 -25
- package/doc/sc/api/lib/fs/functions/mkdir.md +0 -31
- package/doc/sc/api/lib/fs/functions/pipe.md +0 -39
- package/doc/sc/api/lib/fs/functions/putContent.md +0 -47
- package/doc/sc/api/lib/fs/functions/readDir.md +0 -29
- package/doc/sc/api/lib/fs/functions/readLink.md +0 -31
- package/doc/sc/api/lib/fs/functions/readToResponse.md +0 -43
- package/doc/sc/api/lib/fs/functions/rename.md +0 -31
- package/doc/sc/api/lib/fs/functions/rmdir.md +0 -25
- package/doc/sc/api/lib/fs/functions/rmdirDeep.md +0 -25
- package/doc/sc/api/lib/fs/functions/stats.md +0 -25
- package/doc/sc/api/lib/fs/functions/symlink.md +0 -37
- package/doc/sc/api/lib/fs/functions/unlink.md +0 -25
- package/doc/sc/api/lib/fs/index.md +0 -30
- package/doc/sc/api/lib/kv/classes/Kv.md +0 -1161
- package/doc/sc/api/lib/kv/functions/get.md +0 -41
- package/doc/sc/api/lib/kv/index.md +0 -20
- package/doc/sc/api/lib/kv/interfaces/IConnectionInfo.md +0 -43
- package/doc/sc/api/lib/kv/interfaces/IZRangeOptions.md +0 -52
- package/doc/sc/api/lib/lan/functions/card.md +0 -17
- package/doc/sc/api/lib/lan/functions/scan.md +0 -17
- package/doc/sc/api/lib/lan/index.md +0 -12
- package/doc/sc/api/lib/lang/functions/getCodeByAccept.md +0 -25
- package/doc/sc/api/lib/lang/index.md +0 -17
- package/doc/sc/api/lib/lang/variables/codes.md +0 -13
- package/doc/sc/api/lib/lang/variables/map.md +0 -13
- package/doc/sc/api/lib/lang/variables/names.md +0 -11
- package/doc/sc/api/lib/net/formdata/classes/FormData.md +0 -157
- package/doc/sc/api/lib/net/formdata/index.md +0 -15
- package/doc/sc/api/lib/net/formdata/interfaces/IItem.md +0 -55
- package/doc/sc/api/lib/net/functions/buildCookieQuery.md +0 -31
- package/doc/sc/api/lib/net/functions/fetch.md +0 -31
- package/doc/sc/api/lib/net/functions/filterHeaders.md +0 -37
- package/doc/sc/api/lib/net/functions/get.md +0 -31
- package/doc/sc/api/lib/net/functions/getCa.md +0 -17
- package/doc/sc/api/lib/net/functions/getFormData.md +0 -17
- package/doc/sc/api/lib/net/functions/mproxy.md +0 -38
- package/doc/sc/api/lib/net/functions/mproxyData.md +0 -25
- package/doc/sc/api/lib/net/functions/open.md +0 -23
- package/doc/sc/api/lib/net/functions/post.md +0 -37
- package/doc/sc/api/lib/net/functions/postJson.md +0 -37
- package/doc/sc/api/lib/net/functions/postJsonResponseJson.md +0 -39
- package/doc/sc/api/lib/net/functions/request.md +0 -33
- package/doc/sc/api/lib/net/functions/resetCookieSession.md +0 -25
- package/doc/sc/api/lib/net/functions/rproxy.md +0 -37
- package/doc/sc/api/lib/net/functions/setCookie.md +0 -63
- package/doc/sc/api/lib/net/index.md +0 -37
- package/doc/sc/api/lib/net/interfaces/ICookie.md +0 -69
- package/doc/sc/api/lib/net/interfaces/IMproxyOptions.md +0 -85
- package/doc/sc/api/lib/net/interfaces/IRequestOptions.md +0 -133
- package/doc/sc/api/lib/net/interfaces/IRproxyOptions.md +0 -107
- package/doc/sc/api/lib/net/request/classes/Request.md +0 -297
- package/doc/sc/api/lib/net/request/index.md +0 -11
- package/doc/sc/api/lib/net/response/classes/Response.md +0 -109
- package/doc/sc/api/lib/net/response/index.md +0 -11
- package/doc/sc/api/lib/net/type-aliases/THttpHeaders.md +0 -27
- package/doc/sc/api/lib/s3/classes/S3.md +0 -220
- package/doc/sc/api/lib/s3/enumerations/ESERVICE.md +0 -43
- package/doc/sc/api/lib/s3/functions/get.md +0 -29
- package/doc/sc/api/lib/s3/index.md +0 -23
- package/doc/sc/api/lib/s3/interfaces/IOptions.md +0 -71
- package/doc/sc/api/lib/scan/classes/Scan.md +0 -127
- package/doc/sc/api/lib/scan/functions/get.md +0 -33
- package/doc/sc/api/lib/scan/functions/scanned.md +0 -37
- package/doc/sc/api/lib/scan/functions/setData.md +0 -35
- package/doc/sc/api/lib/scan/index.md +0 -22
- package/doc/sc/api/lib/scan/interfaces/IOptions.md +0 -43
- package/doc/sc/api/lib/scan/interfaces/IStaticOptions.md +0 -35
- package/doc/sc/api/lib/session/classes/Session.md +0 -103
- package/doc/sc/api/lib/session/index.md +0 -15
- package/doc/sc/api/lib/session/interfaces/IOptions.md +0 -41
- package/doc/sc/api/lib/socket/functions/rwebsocket.md +0 -37
- package/doc/sc/api/lib/socket/index.md +0 -15
- package/doc/sc/api/lib/socket/interfaces/IRwebsocketOptions.md +0 -91
- package/doc/sc/api/lib/sql/classes/Sql.md +0 -791
- package/doc/sc/api/lib/sql/enumerations/EJSON.md +0 -61
- package/doc/sc/api/lib/sql/enumerations/ESERVICE.md +0 -27
- package/doc/sc/api/lib/sql/functions/aoMix.md +0 -25
- package/doc/sc/api/lib/sql/functions/column.md +0 -35
- package/doc/sc/api/lib/sql/functions/format.md +0 -37
- package/doc/sc/api/lib/sql/functions/get.md +0 -43
- package/doc/sc/api/lib/sql/index.md +0 -23
- package/doc/sc/api/lib/ssh/classes/Connection.md +0 -123
- package/doc/sc/api/lib/ssh/functions/get.md +0 -25
- package/doc/sc/api/lib/ssh/index.md +0 -19
- package/doc/sc/api/lib/ssh/interfaces/IExtOptions.md +0 -33
- package/doc/sc/api/lib/ssh/sftp/classes/Connection.md +0 -628
- package/doc/sc/api/lib/ssh/sftp/index.md +0 -11
- package/doc/sc/api/lib/ssh/shell/classes/Connection.md +0 -189
- package/doc/sc/api/lib/ssh/shell/index.md +0 -11
- package/doc/sc/api/lib/text/functions/getFilename.md +0 -25
- package/doc/sc/api/lib/text/functions/htmlescape.md +0 -25
- package/doc/sc/api/lib/text/functions/int2str.md +0 -42
- package/doc/sc/api/lib/text/functions/isAscii.md +0 -25
- package/doc/sc/api/lib/text/functions/isDomain.md +0 -27
- package/doc/sc/api/lib/text/functions/isEMail.md +0 -23
- package/doc/sc/api/lib/text/functions/isFalsy.md +0 -25
- package/doc/sc/api/lib/text/functions/isIPv4.md +0 -23
- package/doc/sc/api/lib/text/functions/isIPv6.md +0 -23
- package/doc/sc/api/lib/text/functions/isIdCardCN.md +0 -25
- package/doc/sc/api/lib/text/functions/isPhoneCN.md +0 -25
- package/doc/sc/api/lib/text/functions/isRealPath.md +0 -25
- package/doc/sc/api/lib/text/functions/isTruthy.md +0 -31
- package/doc/sc/api/lib/text/functions/logicalOr.md +0 -41
- package/doc/sc/api/lib/text/functions/match.md +0 -31
- package/doc/sc/api/lib/text/functions/nlReplace.md +0 -31
- package/doc/sc/api/lib/text/functions/parseDomain.md +0 -25
- package/doc/sc/api/lib/text/functions/parseJson.md +0 -25
- package/doc/sc/api/lib/text/functions/parseUrl.md +0 -23
- package/doc/sc/api/lib/text/functions/queryParse.md +0 -25
- package/doc/sc/api/lib/text/functions/queryStringify.md +0 -69
- package/doc/sc/api/lib/text/functions/sizeFormat.md +0 -31
- package/doc/sc/api/lib/text/functions/str2int.md +0 -36
- package/doc/sc/api/lib/text/functions/stringifyBuffer.md +0 -25
- package/doc/sc/api/lib/text/functions/stringifyJson.md +0 -31
- package/doc/sc/api/lib/text/functions/stringifyResult.md +0 -25
- package/doc/sc/api/lib/text/functions/trimJson.md +0 -23
- package/doc/sc/api/lib/text/functions/urlAtom.md +0 -25
- package/doc/sc/api/lib/text/functions/urlResolve.md +0 -31
- package/doc/sc/api/lib/text/index.md +0 -55
- package/doc/sc/api/lib/text/interfaces/IDomain.md +0 -43
- package/doc/sc/api/lib/text/type-aliases/TFalsy.md +0 -13
- package/doc/sc/api/lib/text/variables/REGEXP_ASCII.md +0 -13
- package/doc/sc/api/lib/text/variables/REGEXP_DOMAIN.md +0 -11
- package/doc/sc/api/lib/text/variables/REGEXP_EMAIL.md +0 -11
- package/doc/sc/api/lib/text/variables/REGEXP_IPV4.md +0 -11
- package/doc/sc/api/lib/text/variables/REGEXP_IPV6.md +0 -11
- package/doc/sc/api/lib/time/classes/Time.md +0 -125
- package/doc/sc/api/lib/time/functions/format.md +0 -37
- package/doc/sc/api/lib/time/functions/get.md +0 -27
- package/doc/sc/api/lib/time/functions/isMs.md +0 -25
- package/doc/sc/api/lib/time/functions/stamp.md +0 -31
- package/doc/sc/api/lib/time/index.md +0 -28
- package/doc/sc/api/lib/time/interfaces/IOptions.md +0 -29
- package/doc/sc/api/lib/time/variables/DAY.md +0 -13
- package/doc/sc/api/lib/time/variables/HOUR.md +0 -13
- package/doc/sc/api/lib/time/variables/YEAR.md +0 -13
- package/doc/sc/api/lib/turnstile/enumerations/EFACTORY.md +0 -27
- package/doc/sc/api/lib/turnstile/functions/verify.md +0 -35
- package/doc/sc/api/lib/turnstile/index.md +0 -15
- package/doc/sc/api/lib/vector/classes/Vector.md +0 -141
- package/doc/sc/api/lib/vector/functions/get.md +0 -25
- package/doc/sc/api/lib/vector/index.md +0 -19
- package/doc/sc/api/lib/vector/interfaces/IOptions.md +0 -61
- package/doc/sc/api/lib/ws/classes/Socket.md +0 -331
- package/doc/sc/api/lib/ws/enumerations/EFrameReceiveMode.md +0 -35
- package/doc/sc/api/lib/ws/enumerations/EOpcode.md +0 -59
- package/doc/sc/api/lib/ws/functions/connect.md +0 -31
- package/doc/sc/api/lib/ws/functions/createServer.md +0 -45
- package/doc/sc/api/lib/ws/functions/mproxy.md +0 -38
- package/doc/sc/api/lib/ws/functions/rproxy.md +0 -37
- package/doc/sc/api/lib/ws/functions/rsocket.md +0 -37
- package/doc/sc/api/lib/ws/index.md +0 -30
- package/doc/sc/api/lib/ws/interfaces/IConnectOptions.md +0 -95
- package/doc/sc/api/lib/ws/interfaces/IMproxyOptions.md +0 -87
- package/doc/sc/api/lib/ws/interfaces/IRproxyOptions.md +0 -105
- package/doc/sc/api/lib/zip/classes/Zip.md +0 -392
- package/doc/sc/api/lib/zip/functions/get.md +0 -25
- package/doc/sc/api/lib/zip/index.md +0 -29
- package/doc/sc/api/lib/zip/interfaces/IZipInputByType.md +0 -81
- package/doc/sc/api/lib/zip/interfaces/IZipItem.md +0 -65
- package/doc/sc/api/lib/zip/interfaces/IZipMetadata.md +0 -25
- package/doc/sc/api/lib/zip/interfaces/IZipOutputByType.md +0 -81
- package/doc/sc/api/lib/zip/interfaces/IZipStats.md +0 -49
- package/doc/sc/api/lib/zip/type-aliases/TZipInputFileFormat.md +0 -11
- package/doc/sc/api/lib/zip/type-aliases/TZipInputType.md +0 -11
- package/doc/sc/api/lib/zip/type-aliases/TZipOutputType.md +0 -11
- package/doc/sc/api/lib/zlib/functions/brotliCompress.md +0 -31
- package/doc/sc/api/lib/zlib/functions/brotliDecompress.md +0 -25
- package/doc/sc/api/lib/zlib/functions/compress.md +0 -37
- package/doc/sc/api/lib/zlib/functions/createBrotliCompress.md +0 -25
- package/doc/sc/api/lib/zlib/functions/createBrotliDecompress.md +0 -17
- package/doc/sc/api/lib/zlib/functions/createCompress.md +0 -31
- package/doc/sc/api/lib/zlib/functions/createDecompress.md +0 -25
- package/doc/sc/api/lib/zlib/functions/createDeflate.md +0 -25
- package/doc/sc/api/lib/zlib/functions/createGunzip.md +0 -17
- package/doc/sc/api/lib/zlib/functions/createGzip.md +0 -25
- package/doc/sc/api/lib/zlib/functions/createInflate.md +0 -17
- package/doc/sc/api/lib/zlib/functions/decompress.md +0 -31
- package/doc/sc/api/lib/zlib/functions/deflate.md +0 -31
- package/doc/sc/api/lib/zlib/functions/gunzip.md +0 -25
- package/doc/sc/api/lib/zlib/functions/gzip.md +0 -31
- package/doc/sc/api/lib/zlib/functions/inflate.md +0 -25
- package/doc/sc/api/lib/zlib/index.md +0 -31
- package/doc/sc/api/lib/zlib/interfaces/ICompress.md +0 -27
- package/doc/sc/api/lib/zlib/interfaces/ICompressBuffer.md +0 -27
- package/doc/sc/api/main/index.md +0 -7
- package/doc/sc/api/sys/ctr/classes/Ctr.md +0 -1242
- package/doc/sc/api/sys/ctr/functions/clearLocaleData.md +0 -17
- package/doc/sc/api/sys/ctr/index.md +0 -15
- package/doc/sc/api/sys/mod/classes/Rows.md +0 -165
- package/doc/sc/api/sys/mod/classes/default.md +0 -2175
- package/doc/sc/api/sys/mod/index.md +0 -21
- package/doc/sc/api/sys/mod/interfaces/IModUnionItem.md +0 -25
- package/doc/sc/api/sys/mod/interfaces/IRows.md +0 -57
- package/doc/sc/api/sys/mod/type-aliases/TOnlyProperties.md +0 -19
- package/doc/sc/api/sys/route/functions/clearKebabConfigs.md +0 -17
- package/doc/sc/api/sys/route/functions/getFormData.md +0 -47
- package/doc/sc/api/sys/route/functions/getPost.md +0 -25
- package/doc/sc/api/sys/route/functions/run.md +0 -83
- package/doc/sc/api/sys/route/functions/unlinkUploadFiles.md +0 -25
- package/doc/sc/api/sys/route/functions/waitCtr.md +0 -26
- package/doc/sc/api/sys/route/index.md +0 -16
- package/doc/sc/quick-start.md +0 -30
|
@@ -1,95 +0,0 @@
|
|
|
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
|
-
秒数
|
|
@@ -1,87 +0,0 @@
|
|
|
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
|
-
秒数
|
|
@@ -1,105 +0,0 @@
|
|
|
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
|
-
秒数
|
|
@@ -1,392 +0,0 @@
|
|
|
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`
|
|
@@ -1,25 +0,0 @@
|
|
|
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`\>
|