tidbit_amp_converter

1.2.0 • Public • Published

Tidbit AMP Converter

Description

Quick Converter of Regular HTML Article Pages into Google AMP Pages

Information

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.

Set up

npm i tidbit_amp_converter

Functions

Build AMP Page HTML

  • Contents is your HTML String
import * as tidbit from 'tidbit_amp_converter'
//Returns AMP Complient HTML
let ampPage = tidbit.tidbitConverter(contents);

Build AMP Page HTML (Body Only)

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

Testing

Jest is used to run tests on Tidbit

npm run test

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i tidbit_amp_converter

Weekly Downloads

0

Version

1.2.0

License

ISC

Unpacked Size

50.6 kB

Total Files

28

Last publish

Collaborators

  • mmadden1495