
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
npm i uploadcdn --save-dev
const uploadcdn = require('uploadcdn');
const getTimePrefix = require('uploadcdn').getTimePrefix;
// 获取CDN前缀
const publicPath = getTimePrefix();
...
publicPath: 'https://cdn.com/' + publicPath,
plugins: [
// 注意需要上传form的格式是file
new uploadcdn.Upload2cdnPlugin({cdnUrl: 'https://qiniu.com'})
]
const uploadCDN = require('uploadcdn').uploadCDN;
// cdnUrl,cdn的上传链接,相对路径的filelist文件列表,dirname文件目录
uploadCDN(cdnUrl, filelist, dirname)
FAQs
upload static file to cdn
The npm package uploadcdn receives a total of 4 weekly downloads. As such, uploadcdn popularity was classified as not popular.
We found that uploadcdn 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
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.