Skip to content

mmadde10/NotitiaConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NotitiaConverter

Description

Quick Converter of Regular HTML Article Pages into Google AMP Pages

Information

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.

Set up

npm i notitiaconverter

Methods

Build AMP Page HTML

let Not = new Notitia(contents);
let ampPage = Not.createAMPDocument(contents);
//Returns AMP Complient HTML

Build AMP Page HTML (Body Only)

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

Testing

Jest is used to run tests on Notitia

npm run test

License

MIT

About

Quick Converter of Regular HTML Article Pages into Google AMP Pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published