Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
e-sftp-webpack-plugin
Advanced tools
webpack的插件,用于上传文件到指定服务器。
Install the plugin with npm:
$ npm install dao-sftp-webpack-plugin --save-dev
add the plugin to your webpack config as follows:
var daoSftpWebpackPlugin = require('dao-sftp-webpack-plugin')
var webpackConfig = {
entry: 'index.js',
output: {
path: 'dist',
filename: 'index_bundle.js'
},
plugins: [new daoSftpWebpackPlugin({
port: 'your port',
host: 'your host',
username: 'your username',
password: 'your password',
from: 'you neeed upload file path ',
to: 'you want to destination',
uploadFinish(){
'you want to do something()'
}
})]
}
The plugin allowed values are as follows:
port
: 服务器端口。host
: 服务器地址。username
: 服务器登陆用户名。password
: 服务器登陆密码。from
: 你需要上传的文件路径或者文件,其中对于文件,可以是文件路径的数组。to
: 服务器上的目标路径。uploadFinish
: 上传完成之后需要执行的事件FAQs
基于webpack实现sftp上传功能(含scp2,base on dao-sftp-webpack-plugin
The npm package e-sftp-webpack-plugin receives a total of 1 weekly downloads. As such, e-sftp-webpack-plugin popularity was classified as not popular.
We found that e-sftp-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.