Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
deploy-azure-cdn
Advanced tools
A package that deploys a groupt of files to Azure CDN. Can be used with gulp.
A node package for copying a directory to Azure CDN storage. Also it provides a gulp plugin interface for easy deploy with (gulp)[http://gulpjs.com/]
Azure SDK uses by default the environment variables AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_ACCESS_KEY. Custom connection arguments can be set in options.
npm install deploy-azure-cdn
parameters:
var deployCdn = require('gulp-deploy-azure-cdn');
gulp.task('upload-app-to-azure', function () {
return gulp.src(['build/**/*'], {
cwd: 'build'
}).pipe(deployCdn.gulpPlugin({
containerName: 'test',
serviceOptions: ['<my azure cdn name>', '<my azure cdn secret>'],
folder: 'build-0.0.1/',
zip: true,
deleteExistingBlobs: true,
metadata: {
cacheControl: 'public, max-age=31530000', // cache in browser
cacheControlHeader: 'public, max-age=31530000' // cache in azure CDN. As this data does not change, we set it to 1 year
}
}))
});
See my other repository: https://github.com/bestander/grunt-azure-cdn-deploy. Code is very similar but less structured.
FAQs
A package that copies files to Azure CDN. Can be used as gulp task.
We found that deploy-azure-cdn 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.