nsuite
Your missing nodejs development suite! Give it a star if you find this package useful ^_^.
If you develop with Node.js, you will find that there are many many many functions/packages you need to write/install across many projects.
nsuite will make you feel more comfortable.
After install with npm i -S nsuite
, you will have all the following abilities at your hand.
TypeScript is supported.
Documentation
For online documentation, please visit https://www.verysites.com/docs/nsuite/.
Env
- parseEnvFiles
Path
- getFilePath
- getDirname
- joinPath
- isPathExists
- globMatchPaths
Promise
- withTimeout
Log
- createLogger
- logInfo
- logWarn
- logError
File
- getSafeFileName
- zipFile
- zipFolder
- unzipFile
- getFileMd5
- getReadableFileSize
SSH
- getSSHClient
- sshConnect
- joinPath
- zipFolder
- sshPutFile
- sshExecCommand
Type
- getError
Debug
- attachLogToFunc
Captcha
- generateSvgCaptcha
Text
- generateSummary
Qiniu OSS
- getConfigFromQiniuOSS
- getMacFromQiniuOSS
- joinPath
- refreshUrlsFromQiniuOSS
- uploadDirToQiniuOSS
Aliyun OSS
- getClientFromAliOSS
- getObjectUrlFromAliOSS
- listFilesFromAliOSS
- deleteRemotePathListFromAliOSS
- uploadLocalFileToAliOSS
- uploadDirToAliOSS
License
This project is published under MIT license.