Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
sftp-uploader
Advanced tools
yarn add sftp-uploader
npm i sftp-uploader
// vue.config.js
const sftpUploader = require('sftp-uploader')
module.exports = {
configureWebpack: config => {
return {
plugins: [
new sftpUploader({
// 需要上传文件的目录
dir: path.join(__dirname, 'dist/'),
// 上传到的目录
url: '******',
// sftp地址
host: '*****',
// sftp端口
port: '*****',
// 账号
username: '*****',
// 密码
password: '*****',
// 文件过滤器,可以过滤掉不需要的文件,返回false将不会上传该文件(可选)
filterFile(path) => {
return path.endsWith(.gz) ? true : false
},
// 预览链接接地址(可选)
previewPath: 'https://www.baidu.com'
})
]
}
}
}
// package.json
"scripts": {
"build": "vue-cli-service build --mode development",
"deploy": "set UPLOAD=true && yarn build"
}
// 打包并上传
yarn deploy
// 打包并上传
yarn deploy
FAQs
sftp-uploader
The npm package sftp-uploader receives a total of 9 weekly downloads. As such, sftp-uploader popularity was classified as not popular.
We found that sftp-uploader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.