Socket
Socket
Sign inDemoInstall

gulp-amphtml-validator

Package Overview
Dependencies
62
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-amphtml-validator

Gulp plugin for the official AMP HTML validator (www.ampproject.org)


Version published
Maintainers
1
Created

Readme

Source

Gulp AMPHTML Validator

A Gulp plugin for validating AMPHTML files using the official AMPHTML Validator.

Installation

Install package with NPM and add it to your development dependencies:

npm install --save-dev gulp-amphtml-validator

Usage

const gulpAmpValidator = require('gulp-amphtml-validator');

gulp.task('amphtml:validate', () => {
  return gulp.src('*.html')
    // Valide 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());
});

Release Notes

1.0.0

  • initial release

Keywords

FAQs

Last updated on 06 Dec 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc