
Security News
Microsoft Releases Open Source Toolkit for AI Agent Runtime Security
Microsoft has released an open source toolkit for enforcing runtime security policies on AI agents as adoption accelerates faster than governance controls.
cdn-transfer
Advanced tools
作为阿里云oss/腾讯云 cos 项目文件上传入口;
使用场景:
import Transfer from 'cdn-transfer';
//默认前缀: {name}/{version}/
cdnTransfer.default(path.join(__dirname, '..'), {
SecretId: '********',
SecretKey: '********',
Bucket: 'fr********22416',
Region: 'ap-shanghai'
});
//自定义上传目录:
cdnTransfer.default(path.join(__dirname, '..'), {
SecretId: '********',
SecretKey: '********',
Bucket: 'fr********22416',
Region: 'ap-shanghai',
sourceDir:"./dist",
prefix:(fileRelPath)=>{
return `test/${fileRelPath}`
}
});
//自定义前缀:
cdnTransfer.default(path.join(__dirname, '..'), {
SecretId: '********',
SecretKey: '********',
Bucket: 'fr********22416',
Region: 'ap-shanghai',
prefix:(fileRelPath)=>{
return `test/${fileRelPath}`
}
});
//上传单个文件;
import {uploadFile} from 'cdn-transfer';
let vistiUrl =await uploadFile({
fileAbsPath:"",
ossVisitPath:"",
config:{
cdn:"cos",
SecretId: '********',
SecretKey: '********',
Bucket: 'fr********22416',
Region: 'ap-shanghai',
}
});
FAQs
process static file
The npm package cdn-transfer receives a total of 0 weekly downloads. As such, cdn-transfer popularity was classified as not popular.
We found that cdn-transfer 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
Microsoft has released an open source toolkit for enforcing runtime security policies on AI agents as adoption accelerates faster than governance controls.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.