node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »


Codeship Status for dorightdigital/amp-validator

AMP Validator

A command line tool for validating AMP HTML pages.


npm install -g amp-validator
amp-validator myProject/localExample.html
amp-validator a.html b.html c.html || echo 'One of those failed'

To output as JSON use -o json For no colors use -o colorless-text

Supports multiple URLs, supports local files.


  • Node 4.2.1 - this is precisely the version needed at the moment (you can use nvm install 4.2.1 && nvm use 4.2.1 if you have nvm installed)
  • node-gyp must be installed