sftp-uploader
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -49,3 +49,4 @@ import chalk from 'chalk' | ||
).toFixed(2)}% (${opts.completed}/${opts.total})` // 在单行输出文本 | ||
stdout(pointLog(cmdText)) | ||
// stdout(pointLog(cmdText)) | ||
stdout(cmdText) | ||
} | ||
@@ -52,0 +53,0 @@ } |
{ | ||
"name": "sftp-uploader", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "sftp-uploader", | ||
@@ -26,7 +26,9 @@ "type": "module", | ||
}, | ||
"devDependencies": { | ||
}, | ||
"devDependencies": {}, | ||
"engines": { | ||
"node": "^18.0.0 || >=20.0.0" | ||
}, | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org" | ||
} | ||
} |
@@ -14,3 +14,3 @@ # sftp-uploader | ||
此版本仅适用于 node "^18.0.0 || >=20.0.0" <br /> | ||
低版本node请下载1.x版本 | ||
低版本node请下载[v1.x](https://www.npmjs.com/package/sftp-uploader/v/1.0.5)版本 | ||
@@ -20,7 +20,7 @@ ## 配置 | ||
```javascript | ||
const path = require('path') | ||
const SftpUploader = require('sftp-uploader') | ||
import { resolve } from 'path' | ||
import SftpUploader from 'sftp-uploader' | ||
const sftp = SftpUploader({ | ||
dir: path.join(__dirname, 'dist/'), // 需要上传文件的目录 | ||
dir: resolve('./dist'), // 需要上传文件的目录 | ||
url: '******', // 上传到的目录 | ||
@@ -27,0 +27,0 @@ host: '*****', // sftp地址 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10864
212