
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
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)
We found that gulp-amphtml-validator 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
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.