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.
gulp-amphtml-validator
Advanced tools
Gulp plugin for the official AMP HTML validator (www.ampproject.org)
A Gulp plugin for validating AMPHTML files using the official AMPHTML Validator.
Install package with npm and add it to your development dependencies:
npm install --save-dev gulp-amphtml-validator
const gulpAmpValidator = require('gulp-amphtml-validator');
gulp.task('amphtml:validate', () => {
return (
gulp
.src('*.html')
// Validate the input and attach the validation result to the "amp" property
// of the file object.
.pipe(gulpAmpValidator.validate())
// Print the validation results to the console.
.pipe(gulpAmpValidator.format())
// Exit the process with error code (1) if an AMP validation error
// occurred.
.pipe(gulpAmpValidator.failAfterError())
);
});
To treat warnings as errors, replace the last line of the validation closure with:
// Exit the process with error code (1) if an AMP validation warning or
// error occurred.
.pipe(gulpAmpValidator.failAfterWarningOrError());
FAQs
Gulp plugin for the official AMP HTML validator (www.ampproject.org)
The npm package gulp-amphtml-validator receives a total of 394 weekly downloads. As such, gulp-amphtml-validator popularity was classified as not popular.
We found that gulp-amphtml-validator demonstrated a healthy version release cadence and project activity because the last version was released less than 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.