Quick Converter of Regular HTML Article Pages into Google AMP Pages
Tidbit converts basic HTML based articles into either AMP (Accelerated Mobile Pages) markup. Tidbit 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 tidbit_amp_converter
- Contents is your HTML String
import * as tidbit from 'tidbit_amp_converter'
//Returns AMP Complient HTML
let ampPage = tidbit.tidbitConverter(contents);
import * as tidbit from 'tidbit_amp_converter'
//Returns body of AMP Document
let ampBody = tidbit.tidbitBody(contents);
Note: For More info visit AMP's Documentation
Jest is used to run tests on Tidbit
npm run test
MIT