@maiyunnet/kebab 7.6.1 → 7.6.3
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/lib/fs.js +6 -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,43 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/dns](../index.md) / IDomainList
|
|
6
|
-
|
|
7
|
-
# Interface: IDomainList
|
|
8
|
-
|
|
9
|
-
Defined in: [lib/dns.ts:39](https://github.com/maiyunnet/kebab/blob/master/lib/dns.ts#L39)
|
|
10
|
-
|
|
11
|
-
获取域名列表的返回对象
|
|
12
|
-
|
|
13
|
-
## Properties
|
|
14
|
-
|
|
15
|
-
### list
|
|
16
|
-
|
|
17
|
-
> **list**: `object`[]
|
|
18
|
-
|
|
19
|
-
Defined in: [lib/dns.ts:41](https://github.com/maiyunnet/kebab/blob/master/lib/dns.ts#L41)
|
|
20
|
-
|
|
21
|
-
#### count
|
|
22
|
-
|
|
23
|
-
> **count**: `number`
|
|
24
|
-
|
|
25
|
-
#### id
|
|
26
|
-
|
|
27
|
-
> **id**: `string`
|
|
28
|
-
|
|
29
|
-
#### name
|
|
30
|
-
|
|
31
|
-
> **name**: `string`
|
|
32
|
-
|
|
33
|
-
#### punyCode
|
|
34
|
-
|
|
35
|
-
> **punyCode**: `string`
|
|
36
|
-
|
|
37
|
-
***
|
|
38
|
-
|
|
39
|
-
### total
|
|
40
|
-
|
|
41
|
-
> **total**: `number`
|
|
42
|
-
|
|
43
|
-
Defined in: [lib/dns.ts:40](https://github.com/maiyunnet/kebab/blob/master/lib/dns.ts#L40)
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/dns](../index.md) / IOptions
|
|
6
|
-
|
|
7
|
-
# Interface: IOptions
|
|
8
|
-
|
|
9
|
-
Defined in: [lib/dns.ts:27](https://github.com/maiyunnet/kebab/blob/master/lib/dns.ts#L27)
|
|
10
|
-
|
|
11
|
-
选项
|
|
12
|
-
|
|
13
|
-
## Properties
|
|
14
|
-
|
|
15
|
-
### secretId?
|
|
16
|
-
|
|
17
|
-
> `optional` **secretId**: `string`
|
|
18
|
-
|
|
19
|
-
Defined in: [lib/dns.ts:31](https://github.com/maiyunnet/kebab/blob/master/lib/dns.ts#L31)
|
|
20
|
-
|
|
21
|
-
密钥键
|
|
22
|
-
|
|
23
|
-
***
|
|
24
|
-
|
|
25
|
-
### secretKey?
|
|
26
|
-
|
|
27
|
-
> `optional` **secretKey**: `string`
|
|
28
|
-
|
|
29
|
-
Defined in: [lib/dns.ts:33](https://github.com/maiyunnet/kebab/blob/master/lib/dns.ts#L33)
|
|
30
|
-
|
|
31
|
-
密钥值
|
|
32
|
-
|
|
33
|
-
***
|
|
34
|
-
|
|
35
|
-
### service
|
|
36
|
-
|
|
37
|
-
> **service**: [`ESERVICE`](../enumerations/ESERVICE.md)
|
|
38
|
-
|
|
39
|
-
Defined in: [lib/dns.ts:29](https://github.com/maiyunnet/kebab/blob/master/lib/dns.ts#L29)
|
|
40
|
-
|
|
41
|
-
服务商 -
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / chmod
|
|
6
|
-
|
|
7
|
-
# Function: chmod()
|
|
8
|
-
|
|
9
|
-
> **chmod**(`path`, `mod`): `Promise`\<`boolean`\>
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/fs.ts:278](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L278)
|
|
12
|
-
|
|
13
|
-
修改权限
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### path
|
|
18
|
-
|
|
19
|
-
`string`
|
|
20
|
-
|
|
21
|
-
要修改的路径
|
|
22
|
-
|
|
23
|
-
### mod
|
|
24
|
-
|
|
25
|
-
权限
|
|
26
|
-
|
|
27
|
-
`string` | `number`
|
|
28
|
-
|
|
29
|
-
## Returns
|
|
30
|
-
|
|
31
|
-
`Promise`\<`boolean`\>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / copyFile
|
|
6
|
-
|
|
7
|
-
# Function: copyFile()
|
|
8
|
-
|
|
9
|
-
> **copyFile**(`src`, `dest`): `Promise`\<`boolean`\>
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/fs.ts:386](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L386)
|
|
12
|
-
|
|
13
|
-
复制文件
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### src
|
|
18
|
-
|
|
19
|
-
`string`
|
|
20
|
-
|
|
21
|
-
源文件
|
|
22
|
-
|
|
23
|
-
### dest
|
|
24
|
-
|
|
25
|
-
`string`
|
|
26
|
-
|
|
27
|
-
目标文件
|
|
28
|
-
|
|
29
|
-
## Returns
|
|
30
|
-
|
|
31
|
-
`Promise`\<`boolean`\>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / copyFolder
|
|
6
|
-
|
|
7
|
-
# Function: copyFolder()
|
|
8
|
-
|
|
9
|
-
> **copyFolder**(`from`, `to`, `ignore`): `Promise`\<`number`\>
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/fs.ts:341](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L341)
|
|
12
|
-
|
|
13
|
-
复制文件夹里的内容到另一个地方,失败不会回滚
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### from
|
|
18
|
-
|
|
19
|
-
`string`
|
|
20
|
-
|
|
21
|
-
源,末尾加 /
|
|
22
|
-
|
|
23
|
-
### to
|
|
24
|
-
|
|
25
|
-
`string`
|
|
26
|
-
|
|
27
|
-
目标,末尾加 /
|
|
28
|
-
|
|
29
|
-
### ignore
|
|
30
|
-
|
|
31
|
-
`RegExp`[] = `[]`
|
|
32
|
-
|
|
33
|
-
忽略的文件
|
|
34
|
-
|
|
35
|
-
## Returns
|
|
36
|
-
|
|
37
|
-
`Promise`\<`number`\>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / createReadStream
|
|
6
|
-
|
|
7
|
-
# Function: createReadStream()
|
|
8
|
-
|
|
9
|
-
> **createReadStream**(`path`, `options?`): `ReadStream`
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/fs.ts:401](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L401)
|
|
12
|
-
|
|
13
|
-
创建读取文件的流
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### path
|
|
18
|
-
|
|
19
|
-
`string`
|
|
20
|
-
|
|
21
|
-
文件地址
|
|
22
|
-
|
|
23
|
-
### options?
|
|
24
|
-
|
|
25
|
-
编码或配置
|
|
26
|
-
|
|
27
|
-
`BufferEncoding` | \{ `autoClose?`: `boolean`; `encoding?`: BufferEncoding \| undefined; `end?`: `number`; `flags?`: `string`; `start?`: `number`; \}
|
|
28
|
-
|
|
29
|
-
## Returns
|
|
30
|
-
|
|
31
|
-
`ReadStream`
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / createWriteStream
|
|
6
|
-
|
|
7
|
-
# Function: createWriteStream()
|
|
8
|
-
|
|
9
|
-
> **createWriteStream**(`path`, `options?`): `WriteStream`
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/fs.ts:448](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L448)
|
|
12
|
-
|
|
13
|
-
创建写入文件的流
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### path
|
|
18
|
-
|
|
19
|
-
`string`
|
|
20
|
-
|
|
21
|
-
文件地址
|
|
22
|
-
|
|
23
|
-
### options?
|
|
24
|
-
|
|
25
|
-
编码或配置
|
|
26
|
-
|
|
27
|
-
`BufferEncoding` | \{ `autoClose?`: `boolean`; `encoding?`: BufferEncoding \| undefined; `flags?`: `string`; `mode?`: `number`; `start?`: `number`; \}
|
|
28
|
-
|
|
29
|
-
## Returns
|
|
30
|
-
|
|
31
|
-
`WriteStream`
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / getContent
|
|
6
|
-
|
|
7
|
-
# Function: getContent()
|
|
8
|
-
|
|
9
|
-
读取完整文件或一段
|
|
10
|
-
|
|
11
|
-
## Param
|
|
12
|
-
|
|
13
|
-
文件路径
|
|
14
|
-
|
|
15
|
-
## Param
|
|
16
|
-
|
|
17
|
-
编码或选项
|
|
18
|
-
|
|
19
|
-
## Call Signature
|
|
20
|
-
|
|
21
|
-
> **getContent**(`path`, `options?`): `Promise`\<`Buffer`\<`ArrayBufferLike`\> \| `null`\>
|
|
22
|
-
|
|
23
|
-
Defined in: [lib/fs.ts:14](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L14)
|
|
24
|
-
|
|
25
|
-
### Parameters
|
|
26
|
-
|
|
27
|
-
#### path
|
|
28
|
-
|
|
29
|
-
`string`
|
|
30
|
-
|
|
31
|
-
#### options?
|
|
32
|
-
|
|
33
|
-
##### end?
|
|
34
|
-
|
|
35
|
-
`number`
|
|
36
|
-
|
|
37
|
-
##### start?
|
|
38
|
-
|
|
39
|
-
`number`
|
|
40
|
-
|
|
41
|
-
### Returns
|
|
42
|
-
|
|
43
|
-
`Promise`\<`Buffer`\<`ArrayBufferLike`\> \| `null`\>
|
|
44
|
-
|
|
45
|
-
## Call Signature
|
|
46
|
-
|
|
47
|
-
> **getContent**(`path`, `options`): `Promise`\<`string` \| `null`\>
|
|
48
|
-
|
|
49
|
-
Defined in: [lib/fs.ts:18](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L18)
|
|
50
|
-
|
|
51
|
-
### Parameters
|
|
52
|
-
|
|
53
|
-
#### path
|
|
54
|
-
|
|
55
|
-
`string`
|
|
56
|
-
|
|
57
|
-
#### options
|
|
58
|
-
|
|
59
|
-
`BufferEncoding` | \{ `encoding`: `BufferEncoding`; `end?`: `number`; `start?`: `number`; \}
|
|
60
|
-
|
|
61
|
-
### Returns
|
|
62
|
-
|
|
63
|
-
`Promise`\<`string` \| `null`\>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / isDir
|
|
6
|
-
|
|
7
|
-
# Function: isDir()
|
|
8
|
-
|
|
9
|
-
> **isDir**(`path`): `Promise`\<`false` \| `Stats`\>
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/fs.ts:182](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L182)
|
|
12
|
-
|
|
13
|
-
判断是否是目录或目录是否存在,是的话返回 stats
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### path
|
|
18
|
-
|
|
19
|
-
`string`
|
|
20
|
-
|
|
21
|
-
判断路径
|
|
22
|
-
|
|
23
|
-
## Returns
|
|
24
|
-
|
|
25
|
-
`Promise`\<`false` \| `Stats`\>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / isFile
|
|
6
|
-
|
|
7
|
-
# Function: isFile()
|
|
8
|
-
|
|
9
|
-
> **isFile**(`path`): `Promise`\<`false` \| `Stats`\>
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/fs.ts:194](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L194)
|
|
12
|
-
|
|
13
|
-
判断是否是文件或文件是否存在,是的话返回 stats
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### path
|
|
18
|
-
|
|
19
|
-
`string`
|
|
20
|
-
|
|
21
|
-
判断路径
|
|
22
|
-
|
|
23
|
-
## Returns
|
|
24
|
-
|
|
25
|
-
`Promise`\<`false` \| `Stats`\>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / mkdir
|
|
6
|
-
|
|
7
|
-
# Function: mkdir()
|
|
8
|
-
|
|
9
|
-
> **mkdir**(`path`, `mode`): `Promise`\<`boolean`\>
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/fs.ts:207](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L207)
|
|
12
|
-
|
|
13
|
-
深度创建目录,如果最末目录存在,则自动创建成功
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### path
|
|
18
|
-
|
|
19
|
-
`string`
|
|
20
|
-
|
|
21
|
-
要创建的路径,如 /a/b/c/
|
|
22
|
-
|
|
23
|
-
### mode
|
|
24
|
-
|
|
25
|
-
`number` = `0o755`
|
|
26
|
-
|
|
27
|
-
权限
|
|
28
|
-
|
|
29
|
-
## Returns
|
|
30
|
-
|
|
31
|
-
`Promise`\<`boolean`\>
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / pipe
|
|
6
|
-
|
|
7
|
-
# Function: pipe()
|
|
8
|
-
|
|
9
|
-
> **pipe**(`path`, `destination`, `options?`): `Promise`\<`boolean`\>
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/fs.ts:431](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L431)
|
|
12
|
-
|
|
13
|
-
读取文件写入到流,并等待写入完成
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### path
|
|
18
|
-
|
|
19
|
-
`string`
|
|
20
|
-
|
|
21
|
-
文件地址
|
|
22
|
-
|
|
23
|
-
### destination
|
|
24
|
-
|
|
25
|
-
`WritableStream`
|
|
26
|
-
|
|
27
|
-
要写入的流
|
|
28
|
-
|
|
29
|
-
### options?
|
|
30
|
-
|
|
31
|
-
写入后是否终止写入流,默认终止
|
|
32
|
-
|
|
33
|
-
#### end?
|
|
34
|
-
|
|
35
|
-
`boolean`
|
|
36
|
-
|
|
37
|
-
## Returns
|
|
38
|
-
|
|
39
|
-
`Promise`\<`boolean`\>
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / putContent
|
|
6
|
-
|
|
7
|
-
# Function: putContent()
|
|
8
|
-
|
|
9
|
-
> **putContent**(`path`, `data`, `options`): `Promise`\<`boolean`\>
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/fs.ts:93](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L93)
|
|
12
|
-
|
|
13
|
-
写入文件内容
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### path
|
|
18
|
-
|
|
19
|
-
`string`
|
|
20
|
-
|
|
21
|
-
文件路径
|
|
22
|
-
|
|
23
|
-
### data
|
|
24
|
-
|
|
25
|
-
要写入的内容
|
|
26
|
-
|
|
27
|
-
`string` | `Buffer`\<`ArrayBufferLike`\>
|
|
28
|
-
|
|
29
|
-
### options
|
|
30
|
-
|
|
31
|
-
选项
|
|
32
|
-
|
|
33
|
-
#### encoding?
|
|
34
|
-
|
|
35
|
-
`BufferEncoding`
|
|
36
|
-
|
|
37
|
-
#### flag?
|
|
38
|
-
|
|
39
|
-
`string`
|
|
40
|
-
|
|
41
|
-
#### mode?
|
|
42
|
-
|
|
43
|
-
`number`
|
|
44
|
-
|
|
45
|
-
## Returns
|
|
46
|
-
|
|
47
|
-
`Promise`\<`boolean`\>
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / readDir
|
|
6
|
-
|
|
7
|
-
# Function: readDir()
|
|
8
|
-
|
|
9
|
-
> **readDir**(`path`, `encoding?`): `Promise`\<`Dirent`\<`string`\>[]\>
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/fs.ts:307](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L307)
|
|
12
|
-
|
|
13
|
-
获取文件夹下文件列表
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### path
|
|
18
|
-
|
|
19
|
-
`string`
|
|
20
|
-
|
|
21
|
-
文件夹路径
|
|
22
|
-
|
|
23
|
-
### encoding?
|
|
24
|
-
|
|
25
|
-
`BufferEncoding`
|
|
26
|
-
|
|
27
|
-
## Returns
|
|
28
|
-
|
|
29
|
-
`Promise`\<`Dirent`\<`string`\>[]\>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / readLink
|
|
6
|
-
|
|
7
|
-
# Function: readLink()
|
|
8
|
-
|
|
9
|
-
> **readLink**(`path`, `encoding?`): `Promise`\<`string` \| `null`\>
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/fs.ts:115](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L115)
|
|
12
|
-
|
|
13
|
-
读取链接的 target
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### path
|
|
18
|
-
|
|
19
|
-
`string`
|
|
20
|
-
|
|
21
|
-
要读取的路径
|
|
22
|
-
|
|
23
|
-
### encoding?
|
|
24
|
-
|
|
25
|
-
`BufferEncoding`
|
|
26
|
-
|
|
27
|
-
编码
|
|
28
|
-
|
|
29
|
-
## Returns
|
|
30
|
-
|
|
31
|
-
`Promise`\<`string` \| `null`\>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / readToResponse
|
|
6
|
-
|
|
7
|
-
# Function: readToResponse()
|
|
8
|
-
|
|
9
|
-
> **readToResponse**(`path`, `req`, `res`, `stat?`): `Promise`\<`void`\>
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/fs.ts:479](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L479)
|
|
12
|
-
|
|
13
|
-
读取文件并输出到 http 的 response
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### path
|
|
18
|
-
|
|
19
|
-
`string`
|
|
20
|
-
|
|
21
|
-
文件绝对路径
|
|
22
|
-
|
|
23
|
-
### req
|
|
24
|
-
|
|
25
|
-
http 请求对象
|
|
26
|
-
|
|
27
|
-
`IncomingMessage` | `Http2ServerRequest`
|
|
28
|
-
|
|
29
|
-
### res
|
|
30
|
-
|
|
31
|
-
http 响应对象
|
|
32
|
-
|
|
33
|
-
`Http2ServerResponse`\<`Http2ServerRequest`\> | `ServerResponse`\<`IncomingMessage`\>
|
|
34
|
-
|
|
35
|
-
### stat?
|
|
36
|
-
|
|
37
|
-
文件的 stat(如果有)
|
|
38
|
-
|
|
39
|
-
`Stats` | `null`
|
|
40
|
-
|
|
41
|
-
## Returns
|
|
42
|
-
|
|
43
|
-
`Promise`\<`void`\>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / rename
|
|
6
|
-
|
|
7
|
-
# Function: rename()
|
|
8
|
-
|
|
9
|
-
> **rename**(`oldPath`, `newPath`): `Promise`\<`boolean`\>
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/fs.ts:293](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L293)
|
|
12
|
-
|
|
13
|
-
重命名/移动文件文件夹
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### oldPath
|
|
18
|
-
|
|
19
|
-
`string`
|
|
20
|
-
|
|
21
|
-
老名
|
|
22
|
-
|
|
23
|
-
### newPath
|
|
24
|
-
|
|
25
|
-
`string`
|
|
26
|
-
|
|
27
|
-
新名
|
|
28
|
-
|
|
29
|
-
## Returns
|
|
30
|
-
|
|
31
|
-
`Promise`\<`boolean`\>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / rmdir
|
|
6
|
-
|
|
7
|
-
# Function: rmdir()
|
|
8
|
-
|
|
9
|
-
> **rmdir**(`path`): `Promise`\<`boolean`\>
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/fs.ts:228](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L228)
|
|
12
|
-
|
|
13
|
-
删除空目录
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### path
|
|
18
|
-
|
|
19
|
-
`string`
|
|
20
|
-
|
|
21
|
-
要删除的目录
|
|
22
|
-
|
|
23
|
-
## Returns
|
|
24
|
-
|
|
25
|
-
`Promise`\<`boolean`\>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / rmdirDeep
|
|
6
|
-
|
|
7
|
-
# Function: rmdirDeep()
|
|
8
|
-
|
|
9
|
-
> **rmdirDeep**(`path`): `Promise`\<`boolean`\>
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/fs.ts:246](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L246)
|
|
12
|
-
|
|
13
|
-
Danger 危险:危险函数,尽量不要使用
|
|
14
|
-
This is a danger function, please don't use it
|
|
15
|
-
删除一个非空目录
|
|
16
|
-
|
|
17
|
-
## Parameters
|
|
18
|
-
|
|
19
|
-
### path
|
|
20
|
-
|
|
21
|
-
`string`
|
|
22
|
-
|
|
23
|
-
## Returns
|
|
24
|
-
|
|
25
|
-
`Promise`\<`boolean`\>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / stats
|
|
6
|
-
|
|
7
|
-
# Function: stats()
|
|
8
|
-
|
|
9
|
-
> **stats**(`path`): `Promise`\<`Stats` \| `null`\>
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/fs.ts:169](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L169)
|
|
12
|
-
|
|
13
|
-
获取对象是否存在,存在则返回 stats 对象,否则返回 null
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### path
|
|
18
|
-
|
|
19
|
-
`string`
|
|
20
|
-
|
|
21
|
-
对象路径
|
|
22
|
-
|
|
23
|
-
## Returns
|
|
24
|
-
|
|
25
|
-
`Promise`\<`Stats` \| `null`\>
|