AMP-It is a node module that automates the process of converting a HTML file into an AMP complient file.
const ampIT = ;var content = '<html></html>' //HTML Filelet ampHTML = ;console;//Returns AMP Complient HTML
AMPIT(String); The Following Example will return AMP Complient HTML.
npm install Amp-It
AMP-It first runs your provided HTML into the AMP Validator Module. It then gathers all AMP errors into an array. AMP-It then goes through the errors and corrects them according to the type of error. Once the corrections are made, AMP-It runs the corrected code into the AMP Validator just to double check. As of now AMP-IT returns the HTML as a string. (Soon to return an AMP HTML file)
See https://www.ampproject.org/docs/reference/spec for AMP Specifications
No Testing Yet