zsqnodetools
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "zsqnodetools", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "tools of nodejs", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -6,2 +6,11 @@ # zsqnodetools | ||
##FTP use | ||
##Use like this | ||
```ts | ||
const tools = require('zsqnodetools'); | ||
Start(); | ||
async function Start(){ | ||
await tools.cmdTool.Run('npm run build'); | ||
await tools.ftpTool.UploadFiles(); | ||
} | ||
``` | ||
@@ -10,3 +10,3 @@ export async function UploadFiles() { | ||
const client = new ftp.Client(); | ||
client.ftp.verbose = true | ||
client.ftp.verbose = true; | ||
try { | ||
@@ -13,0 +13,0 @@ await client.access(ftpConfig.uploadconfig.ftpConnectConfig); |
Sorry, the diff of this file is not supported yet
26674
16