Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
cdnjs-cdn-data-angular
Advanced tools
cdnjs data for google-cdn.
This module makes it easy to replace references in your app with links to the Angular libraries on the Google CDN.
$ npm install --save-dev google-cdn cdnjs-cdn-data-angular
package.json:
{
"name": "my-awesome-app",
"dependencies": {
"angular": "1.6.6"
}
}
const googlecdn = require('google-cdn');
const fs = require('fs');
const assert = require('chai').assert;
const packageJson = JSON.parse(fs.readFileSync('package.json', 'utf8'));
const markup = '<script src="node_modules/angular/angular.js"></script>';
googlecdn(markup, packageJson, { cdn: require('cdnjs-cdn-data-angular') }, function(err, result) {
if (err) {
throw err;
}
assert.equal(result, '<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.6.6/angular.min.js"></script>');
});
const gulp = require('gulp');
const googlecdn = require('gulp-google-cdn');
gulp.task('default', function () {
return gulp.src('index.html')
.pipe(googlecdn(require('./package.json'), {
componentsPath: 'node_modules',
cdn: require('cdnjs-cdn-data-angular')
}))
.pipe(gulp.dest('dist'));
});
MIT
FAQs
AngularJS cdnjs Data for google-cdn
The npm package cdnjs-cdn-data-angular receives a total of 5 weekly downloads. As such, cdnjs-cdn-data-angular popularity was classified as not popular.
We found that cdnjs-cdn-data-angular 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.