Quick Converter of Regular HTML Article Pages into Google AMP Pages
Notitia (Latin for Knowledge) is a node module. Notitia converts basic HTML based articles into either AMP (Accelerated Mobile Pages) markup or into Facebook Instant Article Markup. Notitia automates the process of converting plain html code into these two article formats, eliminating the need to create multiple copies of the same article.
npm i notitiaconverter
let Not = new Notitia(contents);
let ampPage = Not.createAMPDocument(contents);
//Returns AMP Complient HTML
let Not = new Notitia(contents);
let ampPageBody = Not.createAMPBody(contents);
//Returns AMP Complient HTML (Body Only)
Note: CreateAMPBody Method will only return the body of the AMP HTML Page. This will not pass the AMP Validator. For More info visit AMP's Documentation
Jest is used to run tests on Notitia
npm run test
MIT